diff --git a/src/Edit.c b/src/Edit.c index 245e3c62a..2d7eec687 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -202,8 +202,8 @@ NP2ENCODING mEncoding[] = { { NCP_8BIT|NCP_RECODE, 20936, "x-cp20936,xcp20936,", 00000, L"" }, // Chinese Simplified (GB2312) { NCP_8BIT|NCP_RECODE, 52936, "hz-gb-2312,hzgb2312,hz,", 00000, L"" }, // Chinese Simplified (HZ-GB2312) */ { NCP_8BIT|NCP_RECODE, 54936, "gb18030,gb18030,", 61072, L"" }, - { NCP_8BIT|NCP_RECODE, 1361, "johab,johab,", 61073, L"" }, // Korean (Johab) -/*{ NCP_8BIT|NCP_RECODE, 20932, "euc-jp,,", 00000, L"" }, // Japanese (JIS X 0208-1990 & 0212-1990) +/* { NCP_8BIT|NCP_RECODE, 1361, "johab,johab,", 61073, L"" }, // Korean (Johab) + { NCP_8BIT|NCP_RECODE, 20932, "euc-jp,,", 00000, L"" }, // Japanese (JIS X 0208-1990 & 0212-1990) { NCP_8BIT|NCP_RECODE, 50220, "iso-2022-jp,iso2022jp,", 00000, L"" }, // Japanese (JIS) { NCP_8BIT|NCP_RECODE, 50221, "csISO2022JP,csiso2022jp,", 00000, L"" }, // Japanese (JIS-Allow 1 byte Kana) { NCP_8BIT|NCP_RECODE, 50222, "_iso-2022-jp$SIO,iso2022jpSIO,", 00000, L"" }, // Japanese (JIS-Allow 1 byte Kana - SO/SI) @@ -1026,7 +1026,7 @@ UINT Encoding_SciGetCodePage(HWND hwnd) { UINT cp = (UINT)SendMessage(hwnd,SCI_GETCODEPAGE,0,0); - if (cp == (UINT)CP_UTF8 || cp == 932U || cp == 936U || cp == 949U || cp == 950U || cp == 1361U) { + if (cp == (UINT)CP_UTF8 || cp == 932U || cp == 936U || cp == 949U || cp == 950U) { return cp; } return (UINT)CP_UTF8; // CP_ACP; @@ -1038,7 +1038,7 @@ void Encoding_SciSetCodePage(HWND hwnd, int iEncoding) if (Encoding_IsValid(iEncoding)) { // check for Chinese, Japan, Korean DBCS code pages and switch accordingly int cp = (int)mEncoding[iEncoding].uCodePage; - if (cp == 932 || cp == 936 || cp == 949 || cp == 950 || cp == 1361) { + if (cp == 932 || cp == 936 || cp == 949 || cp == 950) { SendMessage(hwnd,SCI_SETCODEPAGE,(WPARAM)cp,0); } else diff --git a/src/Notepad3.c b/src/Notepad3.c index aa6599a8f..dcc628402 100644 --- a/src/Notepad3.c +++ b/src/Notepad3.c @@ -6045,7 +6045,7 @@ void LoadSettings() { // check for Chinese, Japan, Korean DBCS code pages and switch accordingly int acp = (int)GetACP(); - if (acp == 932 || acp == 936 || acp == 949 || acp == 950 || acp == 1361) { + if (acp == 932 || acp == 936 || acp == 949 || acp == 950) { iSciDefaultCodePage = acp; } iDefaultEncoding = Encoding_GetByCodePage(iSciDefaultCodePage); diff --git a/src/Notepad3.rc b/src/Notepad3.rc index 023838702..b5e3373f3 100644 Binary files a/src/Notepad3.rc and b/src/Notepad3.rc differ