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 3446 by doda, Sun Jun 7 08:39:00 2009 UTC revision 3450 by doda, Mon Jun 8 10:22:00 2009 UTC
# Line 117  static BOOL DirectPrn = FALSE; Line 117  static BOOL DirectPrn = FALSE;
117  static BYTE NewKeyStr[FuncKeyStrMax];  static BYTE NewKeyStr[FuncKeyStrMax];
118  static int NewKeyId, NewKeyLen;  static int NewKeyId, NewKeyLen;
119    
120  static _locale_t CLocale;  static _locale_t CLocale = NULL;
121    
122  void ResetSBuffers()  void ResetSBuffers()
123  {  {
# Line 174  void ResetTerminal() /*reset variables b Line 174  void ResetTerminal() /*reset variables b
174    FocusReportMode = FALSE;    FocusReportMode = FALSE;
175    MouseReportMode = IdMouseTrackNone;    MouseReportMode = IdMouseTrackNone;
176    
177    CLocale = _create_locale(LC_ALL, "C");    if (CLocale == NULL) {
178        CLocale = _create_locale(LC_ALL, "C");
179      }
180    
181    /* Character sets */    /* Character sets */
182    ResetCharSet();    ResetCharSet();
# Line 3550  void VisualBell() { Line 3552  void VisualBell() {
3552          Sleep(10);          Sleep(10);
3553          CSQExchangeColor();          CSQExchangeColor();
3554  }  }
3555    
3556    void EndTerm() {
3557            if (CLocale) {
3558                    _free_locale(CLocale);
3559            }
3560            CLocale = NULL;
3561    }

Legend:
Removed from v.3446  
changed lines
  Added in v.3450

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