From 369fbe814b246d53624fc3af97f919f80386944f Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Mon, 28 Aug 2017 16:34:29 +0200 Subject: [PATCH] + remove support for obsolete Korean Johab (1361) codepage. --- src/Edit.c | 8 ++++---- src/Notepad3.c | 2 +- src/Notepad3.rc | Bin 180714 -> 180534 bytes 3 files changed, 5 insertions(+), 5 deletions(-) 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 023838702cc51d8dfbdd7f9dc1515a5ce0fd4649..b5e3373f39ae6335dd1f330f4b860eb507eb0095 100644 GIT binary patch delta 34 qcmaFW%)PCNyP<_~3)8Ej>AMP<1g0AlGu2GbsAqE6o>jus;0plz;|+rV delta 83 zcmdni#Qmz7yP<_~3)8Ej>1D-C4$~X_m{_L&C}OIcUJ=B^H=SuFlg@O55TMwFR3-s& eFNS=E42DF8BnC|eYX&%P`ukKS$?ZV>2Ydmu<{C)=