Skip to content
Permalink
Browse files

Fix Cyrillic, Turkish and other languages input issue in ANSI mode.

For more information, check:
#5671

Fix #5671
  • Loading branch information
donho committed Jun 11, 2019
1 parent 344850a commit cc2d246ae23bc85fdccb5797a03fc08e512bec48
Showing with 7 additions and 1 deletion.
  1. +7 −1 scintilla/win32/ScintillaWin.cxx
@@ -1187,7 +1187,13 @@ UINT CodePageFromCharSet(DWORD characterSet, UINT documentCodePage) {
}
switch (characterSet) {
case SC_CHARSET_ANSI: return 1252;
case SC_CHARSET_DEFAULT: return documentCodePage ? documentCodePage : 1252;

// Cyrillic / Turkish or other languages cannot be shown in ANSI mode.
// This fixes such problem. For more information about this fix, check:
// https://github.com/notepad-plus-plus/notepad-plus-plus/issues/5671
//case SC_CHARSET_DEFAULT: return documentCodePage ? documentCodePage : 1252;
case SC_CHARSET_DEFAULT: return documentCodePage;

case SC_CHARSET_BALTIC: return 1257;
case SC_CHARSET_CHINESEBIG5: return 950;
case SC_CHARSET_EASTEUROPE: return 1250;

0 comments on commit cc2d246

Please sign in to comment.
You can’t perform that action at this time.