Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/teraterm/vtterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7813 by zmatsuo, Wed Jun 26 13:39:46 2019 UTC revision 7978 by yutakapon, Sat Aug 17 04:54:13 2019 UTC
# Line 400  void ResetCharSet() Line 400  void ResetCharSet()
400                  strcpy(ts.Locale, DEFAULT_LOCALE);                  strcpy(ts.Locale, DEFAULT_LOCALE);
401                  result = setlocale(LC_ALL, ts.Locale);                  result = setlocale(LC_ALL, ts.Locale);
402          }          }
403          ts.CodePage = atoi(strrchr(result, '.')+1);          // 英語版Windows95/NT4.0では、ts.Localeがデフォルトの"japanese"だった場合、
404            // setlocaleが NULL を返すため、Tera Termの起動時に落ちることがある。
405            // setlocale に成功した時のみ、コードページを設定する。
406            if (result)
407                    ts.CodePage = atoi(strrchr(result, '.')+1);
408  }  }
409    
410  void ResetKeypadMode(BOOL DisabledModeOnly)  void ResetKeypadMode(BOOL DisabledModeOnly)

Legend:
Removed from v.7813  
changed lines
  Added in v.7978

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26