diff options
author | nyamatongwe <unknown> | 2013-04-17 22:44:50 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-04-17 22:44:50 +1000 |
commit | 0a5d7cc22579a176899a642ecee71d5559303132 (patch) | |
tree | e56865382123861621d5a54a892ea349b4c0f8a7 | |
parent | 6d5609fa7b23d0915dfc5667e38a3ecd0f1680d9 (diff) | |
download | scintilla-mirror-0a5d7cc22579a176899a642ecee71d5559303132.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; |