diff options
author | nyamatongwe <devnull@localhost> | 2013-04-17 22:44:50 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2013-04-17 22:44:50 +1000 |
commit | 95e4ac3721d7f2330a660dd85ba986cd95d55031 (patch) | |
tree | 3258fde3d2b56eafa4d86d25085ab7c4034a56bd | |
parent | 8cf6d9a81bfd614966588acd4312b37166239799 (diff) | |
download | scintilla-mirror-95e4ac3721d7f2330a660dd85ba986cd95d55031.tar.gz |
Allow Asian code pages to work for DirectWrite when using SC_CHARSET_DEFAULT.
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 3b5a73d8c..9775f4ba7 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -694,7 +694,7 @@ UINT CodePageFromCharSet(DWORD characterSet, UINT documentCodePage) { } switch (characterSet) { case SC_CHARSET_ANSI: return 1252; - case SC_CHARSET_DEFAULT: return 0; + case SC_CHARSET_DEFAULT: return documentCodePage; case SC_CHARSET_BALTIC: return 1257; case SC_CHARSET_CHINESEBIG5: return 950; case SC_CHARSET_EASTEUROPE: return 1250; |