This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients amaury.forgeotdarc, eric.araujo, loewis, runtux, tarek, techtonik, vstinner
Date 2011-10-14.16:30:22
SpamBayes Score 3.9964942e-09
Marked as misclassified No
Message-id <>
The problem is that the config file is parsed using GetPrivateProfileString, and the result is then passed to TextOut, SetDlgItemText, CreateWindow, etc. all of which are defined to accept MBCS strings. I agree that this can't work correctly in the general case.

Changing the GUI functions to operate on Unicode strings is certainly feasible and a good idea. The main challenge then is the format of the INI file. IIUC, GetPrivateProfileStringW is willing to process UTF-16 (with BOM) encoded INI files, but I never tested whether it actually does. If it does, I recommend to have the INI file encoded in UTF-16 (with BOM, using LE for safety).

In porting wininst.exe, it seems tempting to use the TEXT family of APIs. I'd advise against that, and recommend to explicitly use the *W functions.
Date User Action Args
2011-10-14 16:30:23loewissetrecipients: + loewis, amaury.forgeotdarc, vstinner, techtonik, tarek, eric.araujo, runtux
2011-10-14 16:30:23loewissetmessageid: <>
2011-10-14 16:30:23loewislinkissue10945 messages
2011-10-14 16:30:22loewiscreate