diff options
| author | Andrew Innes | 1999-05-04 08:57:08 +0000 |
|---|---|---|
| committer | Andrew Innes | 1999-05-04 08:57:08 +0000 |
| commit | 1c885fe1ad42e6616f028c9686b6c4725952c699 (patch) | |
| tree | 086d45ae1ee86e2fe48372c870153fbf32783696 /src | |
| parent | 806066661c8ca2b10cf3d53503e2705a6c768ec5 (diff) | |
| download | emacs-1c885fe1ad42e6616f028c9686b6c4725952c699.tar.gz emacs-1c885fe1ad42e6616f028c9686b6c4725952c699.zip | |
(x_to_w32_charset): Fix typo: want to map all Japanese
charsets to the standard Windows charset for Japanese.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 43c647ebdd8..00e2011a12a 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -5144,9 +5144,9 @@ w32_load_system_font (f,fontname,size) | |||
| 5144 | type FONT_ENCODING_NOT_DECIDED. */ | 5144 | type FONT_ENCODING_NOT_DECIDED. */ |
| 5145 | encoding = strrchr (fontp->name, '-'); | 5145 | encoding = strrchr (fontp->name, '-'); |
| 5146 | if (encoding && stricmp (encoding+1, "sjis") == 0) | 5146 | if (encoding && stricmp (encoding+1, "sjis") == 0) |
| 5147 | fontp->encoding[1] = 4; | 5147 | fontp->encoding[1] = 4; |
| 5148 | else | 5148 | else |
| 5149 | fontp->encoding[1] = FONT_ENCODING_NOT_DECIDED; | 5149 | fontp->encoding[1] = FONT_ENCODING_NOT_DECIDED; |
| 5150 | 5150 | ||
| 5151 | /* The following three values are set to 0 under W32, which is | 5151 | /* The following three values are set to 0 under W32, which is |
| 5152 | what they get set to if XGetFontProperty fails under X. */ | 5152 | what they get set to if XGetFontProperty fails under X. */ |
| @@ -5331,7 +5331,8 @@ x_to_w32_charset (lpcs) | |||
| 5331 | if (stricmp (lpcs,"ansi") == 0) return ANSI_CHARSET; | 5331 | if (stricmp (lpcs,"ansi") == 0) return ANSI_CHARSET; |
| 5332 | else if (stricmp (lpcs,"iso8859-1") == 0) return ANSI_CHARSET; | 5332 | else if (stricmp (lpcs,"iso8859-1") == 0) return ANSI_CHARSET; |
| 5333 | else if (stricmp (lpcs, "ms-symbol") == 0) return SYMBOL_CHARSET; | 5333 | else if (stricmp (lpcs, "ms-symbol") == 0) return SYMBOL_CHARSET; |
| 5334 | else if (stricmp (lpcs, "jis") == 0) return SHIFTJIS_CHARSET; | 5334 | /* Map all Japanese charsets to the Windows Shift-JIS charset. */ |
| 5335 | else if (strnicmp (lpcs, "jis", 3) == 0) return SHIFTJIS_CHARSET; | ||
| 5335 | else if (stricmp (lpcs, "ksc5601.1987") == 0) return HANGEUL_CHARSET; | 5336 | else if (stricmp (lpcs, "ksc5601.1987") == 0) return HANGEUL_CHARSET; |
| 5336 | else if (stricmp (lpcs, "gb2312") == 0) return GB2312_CHARSET; | 5337 | else if (stricmp (lpcs, "gb2312") == 0) return GB2312_CHARSET; |
| 5337 | else if (stricmp (lpcs, "big5") == 0) return CHINESEBIG5_CHARSET; | 5338 | else if (stricmp (lpcs, "big5") == 0) return CHINESEBIG5_CHARSET; |