http://bugs.winehq.org/show_bug.cgi?id=19253
Summary: broken parameterization of error messages using %1 Product: Wine Version: 1.1.25 Platform: All OS/Version: All Status: UNCONFIRMED Severity: trivial Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: hoehle@users.sourceforge.net
LANG=C wine foo.txt wine: could not load L"Z:\...\xyz.zip": Bad EXE format for LANG=de_DE.UTF-8 wine foo.txt wine: could not load L"Z:\...\Makefile.in": Fehlerhaftes EXE-Format f?r
Actually, there are 2 bugs: A) "für(for)" The Umlaut is not printed or converted correctly in the UNIX terminal. Likely a missing ACP/UNIX_CP conversion at some point.
B) The text refers to an argument that is not displayed dlls/kernel32/nls/winerr_*.mc contains MessageId=193 SymbolicName=ERROR_BAD_EXE_FORMAT Language=ENU Bad EXE format for %1 There are some more messages with 1 or even %2 parameters.
How does the function which throws out error messages know that some take an argument (%1) and others don't? Where would it receive those arguments?
http://bugs.winehq.org/show_bug.cgi?id=19253
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other OS/Version|All |other
http://bugs.winehq.org/show_bug.cgi?id=19253
--- Comment #1 from Jörg Höhle hoehle@users.sourceforge.net 2009-12-15 10:12:01 --- Alexandre's commit a04512275420acd74fe5c0d90035a754d255f2ed in wine-1.1.34 addresses part B): Now %1 is converted. (I don't know how an error with a %2 part would behave.)
Alas, even though there's now explicit code page conversion using CP_ACP, part A) = output of Umlauts to a shell terminal is still incorrect: wine: Fehlerhaftes EXE-Format f<?>r Z:\...\rost.ini The <?> is actually an unusual quotation mark box. When I switch gnome-terminal to ISO-8859-15 encoding (LANG is still set to de_DE.UTF-8) then wine displays the correct "für" instead of f?r.
I don't know how to produce a message involving %1-formatting from the cmd shell. I just noted that wine cmd /c help also displays the strange <?> character in the German help. However, setting gnome-terminal to ISO-8859-15 displays blanks instead of Umlauts here! This behaviour is different from the above.
Invoking them in an Emacs shell buffer reveals what's actually output: 252 for ü in the %1 case (CP1252/ISO Latin), 129 for ü in the cmd help page (DOS CP850).
http://bugs.winehq.org/show_bug.cgi?id=19253
--- Comment #2 from Dmitry Timoshkov dmitry@codeweavers.com 2009-12-16 00:48:52 --- (In reply to comment #1)
Alas, even though there's now explicit code page conversion using CP_ACP, part A) = output of Umlauts to a shell terminal is still incorrect: wine: Fehlerhaftes EXE-Format f<?>r Z:\...\rost.ini The <?> is actually an unusual quotation mark box. When I switch gnome-terminal to ISO-8859-15 encoding (LANG is still set to de_DE.UTF-8) then wine displays the correct "für" instead of f?r.
That's the bug 13819.
http://bugs.winehq.org/show_bug.cgi?id=19253
--- Comment #3 from Jörg Höhle hoehle@users.sourceforge.net 2009-12-17 13:00:21 --- Thanks Dmitry, I've "moved" the code page part to bug #13819, comment #8 which is a better match, although not exactly the same issue. This may perhaps allow to close the present issue by saying that it is about the % parameterization only. Does Alexandre's patch fix all % formatting in a central place or was that just one spot?
http://bugs.winehq.org/show_bug.cgi?id=19253
Jörg Höhle hoehle@users.sourceforge.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #4 from Jörg Höhle hoehle@users.sourceforge.net 2010-02-20 16:01:04 --- Marking fixed (since 1.1.34) as the testcase I provided (involving %1) works since then. My question
Does Alexandre's patch fix all % formatting in a central place or was that just one spot?
remains unanswered. If somebody finds another testcase, please reopen this issue.
http://bugs.winehq.org/show_bug.cgi?id=19253
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2010-03-05 12:43:03 --- Closing bugs fixed in 1.1.40.