[Bug 13819] New: Wrong codepage used for console output
http://bugs.winehq.org/show_bug.cgi?id=13819 Summary: Wrong codepage used for console output Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs(a)winehq.org ReportedBy: fgouget(a)codeweavers.com To reproduce this problem, run the following command (that's assuming you have a UTF-8 xterm, otherwise replace UTF-8 with ISO-8859-1 or the appropriate encoding): LANG=fr_FR.UTF-8 ./programs/start/start /help You will notice that all the accentuated characters are missing. This is because start.c converts the Unicode resource string to the GetConsoleOutputCP() encoding in the output() function. I think that's correct but GetConsoleOutputCP() systematically return "850" as the codepage, even if I change the [Nls\Codepage]/OEM value in the registry. One hack to fix this is to replace the GetConsoleOutputCP() call with CP_UNIXCP but I guess that would be wrong in the case where we're running in the Wine console. So I think that when the console is a regular Unix terminal GetConsoleOutputCP() should return the CP_UNIXCP codepage. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 François Gouget <fgouget(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wine(a)mkarcher.dialup.fu- | |berlin.de --- Comment #1 from François Gouget <fgouget(a)codeweavers.com> 2008-06-12 04:42:49 --- *** Bug 13862 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anpaza(a)mail.ru --- Comment #2 from Austin English <austinenglish(a)gmail.com> 2008-10-24 10:37:03 --- *** Bug 15736 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified --- Comment #3 from Austin English <austinenglish(a)gmail.com> 2009-01-20 02:39:11 --- Removing deprecated CVS/GIT version tag. Please retest in current git. If the bug is still present in today's wine, but was not present in some earlier version of wine, please update version field to earliest known version of wine that had the bug. Thanks! -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Zhenya <Zenitur(a)yandex.ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |Zenitur(a)yandex.ru --- Comment #4 from Zhenya <Zenitur(a)yandex.ru> 2009-06-12 08:14:22 --- Is this a bug? I think, this is a feature. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 --- Comment #5 from François Gouget <fgouget(a)codeweavers.com> 2009-06-12 10:10:26 ---
Is this a bug? I think, this is a feature.
How so? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 --- Comment #6 from Andrew Zabolotny <anpaza(a)mail.ru> 2009-06-15 03:58:16 --- This is a case of program generating incorrect results in a perfectly valid situation, so I'd classify this as a bug. Perhaps GetConsoleOutputCP() should call some method of the driver, and let the driver decide what's the correct console codepage. I have the same bug with my linux console using UTF-8 (or CP1251) and GetConsoleOutputCP() returning 866, so any cyrillic output I see is in incorrect encoding (just run 'wine cmd'). -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hys545(a)dreamwiz.com --- Comment #7 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2009-06-18 22:17:22 --- *** Bug 10425 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Jörg Höhle <hoehle(a)users.sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hoehle(a)users.sourceforge.ne | |t --- Comment #8 from Jörg Höhle <hoehle(a)users.sourceforge.net> 2009-12-17 12:53:51 --- Dmitry Timoshkov pointed me to this code page issue. I've extracted out of bug #19253, comment #1 the following issue that I believe is close enough to the present one not to merit its own bug page: Code pages or rather Umlauts are handled inconsistently between a) wine cmd /c help b) wine readme.txt # assuming this file exists wine: Fehlerhaftes EXE-Format f<?>r Z:\...\readme.txt Using LANG=de_DE.UTF-8 in gnome-terminal in Ubuntu Intrepid with wine-1.1.34. Invoking them in an Emacs shell buffer reveals what's actually output: a) 129 for ü in the cmd help page (DOS CP850), b) 252 for ü in case b) (CP1252/ISO Latin). In a gnome-terminal, depending on your settings, you'll see as Umlaut either a strange character with a question mark inside, or simply a blank. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maci(a)satgnu.net --- Comment #9 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2010-02-16 03:31:34 --- *** Bug 13189 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 --- Comment #10 from Luca Bennati <lucak3(a)gmail.com> 2010-02-16 04:00:45 --- Finally found the bug for this problem Still an issue in wine-1.1.38-219-g438ad93 I want to ask since i don't really know this code, how much is difficult this task? If not so much, could it be done before 1.2? -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Eric Pouech <eric.pouech(a)orange.fr> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech(a)orange.fr --- Comment #11 from Eric Pouech <eric.pouech(a)orange.fr> 2010-09-01 14:43:16 CDT --- some evolutions of console management have found their way into git tree (and are said to fix this one) please retest A+ -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Frédéric Delanoy <frederic.delanoy(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |frederic.delanoy(a)gmail.com --- Comment #12 from Frédéric Delanoy <frederic.delanoy(a)gmail.com> 2010-09-01 17:44:30 CDT --- (In reply to comment #11)
some evolutions of console management have found their way into git tree (and are said to fix this one) please retest A+
Now works. Thanks -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Wylda <wylda(a)volny.cz> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |wylda(a)volny.cz Resolution| |FIXED --- Comment #13 from Wylda <wylda(a)volny.cz> 2010-09-01 18:43:54 CDT --- Reported fixed. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=13819 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #14 from Alexandre Julliard <julliard(a)winehq.org> 2010-09-03 14:05:06 CDT --- Closing bugs fixed in 1.3.2. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org