diff options
author | nyamatongwe <unknown> | 2009-08-26 10:52:06 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-08-26 10:52:06 +0000 |
commit | bba3a93ea7acdf2b12593c6fc427f948833541f1 (patch) | |
tree | 4507c22c8479b2fd85eeea7d2f00147f362944db /gtk/ScintillaGTK.cxx | |
parent | a98dc4fbced60a016511e407ebc77eb37ec3b8cf (diff) | |
download | scintilla-mirror-bba3a93ea7acdf2b12593c6fc427f948833541f1.tar.gz |
Made Japanese and Chinese code pages 932, 936 and 950 work on GTK+.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
-rw-r--r-- | gtk/ScintillaGTK.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index b490975e8..ab9c9d58a 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1001,7 +1001,12 @@ int ScintillaGTK::EncodedFromUTF8(char *utf8, char *encoded) { } bool ScintillaGTK::ValidCodePage(int codePage) const { - return codePage == 0 || codePage == SC_CP_UTF8 || codePage == SC_CP_DBCS; + return codePage == 0 + || codePage == SC_CP_UTF8 + || codePage == 932 + || codePage == 936 + || codePage == 950 + || codePage == SC_CP_DBCS; } sptr_t ScintillaGTK::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { |