]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/intl.cpp
Patch from Andre Reitz to correct a couple of bugs
[wxWidgets.git] / src / common / intl.cpp
index 7d449cea28204745ff84cc759a638f57e5ad0235..8aeb57fbe9f90edf4c1ee4aedff8be694abab5c7 100644 (file)
@@ -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;