Mercurial > emacs
changeset 24692:a0a2521b783d
(x_to_w32_charset): Fix typo: want to map all Japanese
charsets to the standard Windows charset for Japanese.
author | Andrew Innes <andrewi@gnu.org> |
---|---|
date | Tue, 04 May 1999 08:57:08 +0000 |
parents | 0f6ca131ad9c |
children | 7d78745d1195 |
files | src/w32fns.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32fns.c Tue May 04 05:48:54 1999 +0000 +++ b/src/w32fns.c Tue May 04 08:57:08 1999 +0000 @@ -5144,9 +5144,9 @@ type FONT_ENCODING_NOT_DECIDED. */ encoding = strrchr (fontp->name, '-'); if (encoding && stricmp (encoding+1, "sjis") == 0) - fontp->encoding[1] = 4; + fontp->encoding[1] = 4; else - fontp->encoding[1] = FONT_ENCODING_NOT_DECIDED; + fontp->encoding[1] = FONT_ENCODING_NOT_DECIDED; /* The following three values are set to 0 under W32, which is what they get set to if XGetFontProperty fails under X. */ @@ -5331,7 +5331,8 @@ if (stricmp (lpcs,"ansi") == 0) return ANSI_CHARSET; else if (stricmp (lpcs,"iso8859-1") == 0) return ANSI_CHARSET; else if (stricmp (lpcs, "ms-symbol") == 0) return SYMBOL_CHARSET; - else if (stricmp (lpcs, "jis") == 0) return SHIFTJIS_CHARSET; + /* Map all Japanese charsets to the Windows Shift-JIS charset. */ + else if (strnicmp (lpcs, "jis", 3) == 0) return SHIFTJIS_CHARSET; else if (stricmp (lpcs, "ksc5601.1987") == 0) return HANGEUL_CHARSET; else if (stricmp (lpcs, "gb2312") == 0) return GB2312_CHARSET; else if (stricmp (lpcs, "big5") == 0) return CHINESEBIG5_CHARSET;