added Thai/CP874 support for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2277,12 +2277,17 @@ wxFontEncoding wxLocale::GetSystemEncoding()
|
||||
#if defined(__WIN32__) && !defined(__WXMICROWIN__)
|
||||
UINT codepage = ::GetACP();
|
||||
|
||||
// wxWidgets only knows about CP1250-1257, 932, 936, 949, 950
|
||||
// wxWidgets only knows about CP1250-1257, 874, 932, 936, 949, 950
|
||||
if ( codepage >= 1250 && codepage <= 1257 )
|
||||
{
|
||||
return (wxFontEncoding)(wxFONTENCODING_CP1250 + codepage - 1250);
|
||||
}
|
||||
|
||||
if ( codepage == 874 )
|
||||
{
|
||||
return wxFONTENCODING_CP874;
|
||||
}
|
||||
|
||||
if ( codepage == 932 )
|
||||
{
|
||||
return wxFONTENCODING_CP932;
|
||||
|
Reference in New Issue
Block a user