Fwd: [1/2] programs/notepad: Load UTF-8 codepage name from resources instead of using GetCPInfoEx.
Alexander Scott-Johns
alexander.scott.johns at googlemail.com
Wed Apr 21 10:41:41 CDT 2010
Forgot to Reply All
---------- Forwarded message ----------
From: Alexander Scott-Johns <alexander.scott.johns at googlemail.com>
Date: 21 April 2010 16:40
Subject: Re: [1/2] programs/notepad: Load UTF-8 codepage name from
resources instead of using GetCPInfoEx.
To: Dmitry Timoshkov <dmitry at codeweavers.com>
On 21 April 2010 16:08, Dmitry Timoshkov <dmitry at codeweavers.com> wrote:
> Alexander Scott-Johns <alexander.scott.johns at googlemail.com> wrote:
>
>> Using GetCPInfoEx was a nice idea, but unfortunately its output is not
>> localized, and on Windows, the codepage identifier is tacked on the beginnning.
>
> You should fix GetCPInfoEx instead, it returns localized strings under Windows.
> Same comment for your other patch.
I don't think Windows Notepad uses GetCPInfoEx either, and on my
Windows XP box, Wine Notepad's menu ended up looking something like:
1252 ANSI Latin 1
Unicode (UTF-16)
Unicode (UTF-16 big-endian)
65001 Unicode (UTF-8)
Yes, GetCPInfoEx should be fixed. But Wine Notepad will still be
slightly broken.
More information about the wine-devel
mailing list