http://bugs.winehq.org/show_bug.cgi?id=15736
Summary: Console programs outputs localized messages in wrong encoding Product: Wine Version: 1.1.5 Platform: Other OS/Version: other Status: UNCONFIRMED Severity: minor Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: anpaza@mail.ru
When launching any Windows console programs with 'wine', the text will be output in the DOS codepage, no matter what my Unix encoding is. For example, if I launch:
wine cmd.exe
having a Russian locale (ru_RU.CP1251) it will output Russian text in Windows codepage 866, which is unreadable.
wineconsole works fine because it provides its own console with the correct codepage. Exampple:
$ wine cmd ‚ҐабЁп CMD 1.1.5
Z:\home\zap>
Should be:
$ wine cmd Версия CMD 1.1.5
Z:\home\zap>
I think the layer which outputs text to stdout/stderr (and reads from stdin) must convert everything from UCS-2 or WANSI to current Unix encoding (which can be obtained with nl_langinfo (CODESET)) and not to DOS codepage. The wineconsole layer may be left as it is.