[Bug 20517] New: temporary language switch causes permanent change of codepage

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Oct 30 03:32:17 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=20517

           Summary: temporary language switch causes permanent change of
                    codepage
           Product: Wine
           Version: 1.1.30
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: -unknown
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: hoehle at users.sourceforge.net


For as long as I can remember (I'm sorry to report this now only), the sequence
rm -rf .wine; wine winecfg; LANG=C wine winecfg; wine winecfg
(assuming a default of LANG=de_DE.UTF-8 in Linux) provoked the following change
in the registry against the initial setting:

+[System\\CurrentControlSet\\Control\\Nls\\Codepage] 1251317004
 "37"=""
 "ACP"="1252"
-"OEMCP"="437"
+"OEMCP"="850"

This proves that something is not initialized consistently. This is clearly a
bug and might cause seemingly non-deterministic faults in apps.


I don't know whether this is related to the bug that I'm actually researching:
some old multi-lingual French and German apps start in English when I expect
them to start in French or German.


On the Mac, the situation in the registry seems a little worse.  Apple has a
couple of fonts using native (non-ASCII) file names. Switching from the default
German to the French locale (see bug #20377 on how to do this on the Mac)
causes the following changes in addition to the above:

-"Hiragino Mincho Pro
(TrueType)"="Z:\\Library\\Fonts\\\x30d2\x30e9\x30ae\x30ce...
+"Hiragino Mincho Pro
(TrueType)"="Z:\\Library\\Fonts\\\xe3\x83\x92\xe3\x83\xa9...
# The file name is ヒラギノ明朝 Pro W3.otf or similar.
-"Locale"="00000407"
+"Locale"="0000040c"
-"sCountry"="Germany"
+"sCountry"="France"
-"sLanguage"="DEU"
+"sLanguage"="FRA"

I.e. the filename's encoding was changed. I don't know whether it's consistent
with the codepage, but I see no reason why switching from German (UTF-8) to
French (UTF-8) should cause Wine to change
- the codepage or
- filename encodings.

Regards,
    Jörg Höhle

-- 
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.


More information about the wine-bugs mailing list