diff options
| author | nyamatongwe <devnull@localhost> | 2009-08-26 10:52:06 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-08-26 10:52:06 +0000 |
| commit | dd8bae921b13290c2f2bbed80a55f21eb6098d11 (patch) | |
| tree | 4507c22c8479b2fd85eeea7d2f00147f362944db /gtk/ScintillaGTK.cxx | |
| parent | 6b8c7da6f484dac022453aaf83daca1c4f94e840 (diff) | |
| download | scintilla-mirror-dd8bae921b13290c2f2bbed80a55f21eb6098d11.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) { |
