Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/teraterm/ttpcmn/ttcmn.c

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

revision 3458 by doda, Mon Jun 8 19:12:25 2009 UTC revision 3462 by doda, Wed Jun 10 03:28:31 2009 UTC
# Line 14  Line 14 
14  #include <windows.h>  #include <windows.h>
15  #include <tchar.h>  #include <tchar.h>
16  #include <setupapi.h>  #include <setupapi.h>
17    #include <locale.h>
18    
19  #include "compat_w95.h"  #include "compat_w95.h"
20    
# Line 1151  int TextOutMBCS(PComVar cv, PCHAR B, int Line 1152  int TextOutMBCS(PComVar cv, PCHAR B, int
1152          int SendCodeNew;          int SendCodeNew;
1153          BYTE d;          BYTE d;
1154          BOOL Full, KanjiFlagNew;          BOOL Full, KanjiFlagNew;
1155            _locale_t locale;
1156    
1157            locale = _create_locale(LC_ALL, cv->Locale);
1158    
1159          Full = FALSE;          Full = FALSE;
1160          i = 0;          i = 0;
# Line 1195  int TextOutMBCS(PComVar cv, PCHAR B, int Line 1199  int TextOutMBCS(PComVar cv, PCHAR B, int
1199                                  TempStr[TempLen++] = LOBYTE(K);                                  TempStr[TempLen++] = LOBYTE(K);
1200                          }                          }
1201                  }                  }
1202                  else if (IsDBCSLeadByteEx(*cv->CodePage, d)) {                  else if (_isleadbyte_l(d, locale)) {
1203                          KanjiFlagNew = TRUE;                          KanjiFlagNew = TRUE;
1204                          cv->SendKanjiFirst = d;                          cv->SendKanjiFirst = d;
1205                          SendCodeNew = IdKanji;                          SendCodeNew = IdKanji;
# Line 1301  int TextOutMBCS(PComVar cv, PCHAR B, int Line 1305  int TextOutMBCS(PComVar cv, PCHAR B, int
1305    
1306          } // end of "while {}"          } // end of "while {}"
1307    
1308            _free_locale(locale);
1309    
1310          return i;          return i;
1311  }  }
1312    
# Line 1411  int FAR PASCAL TextEchoMBCS(PComVar cv, Line 1417  int FAR PASCAL TextEchoMBCS(PComVar cv,
1417          int EchoCodeNew;          int EchoCodeNew;
1418          BYTE d;          BYTE d;
1419          BOOL Full, KanjiFlagNew;          BOOL Full, KanjiFlagNew;
1420            _locale_t locale;
1421    
1422            locale = _create_locale(LC_ALL, cv->Locale);
1423    
1424          Full = FALSE;          Full = FALSE;
1425          i = 0;          i = 0;
# Line 1455  int FAR PASCAL TextEchoMBCS(PComVar cv, Line 1464  int FAR PASCAL TextEchoMBCS(PComVar cv,
1464                                  TempStr[TempLen++] = LOBYTE(K);                                  TempStr[TempLen++] = LOBYTE(K);
1465                          }                          }
1466                  }                  }
1467                  else if (IsDBCSLeadByteEx(*cv->CodePage, d)) {                  else if (_isleadbyte_l(d, locale)) {
1468                          KanjiFlagNew = TRUE;                          KanjiFlagNew = TRUE;
1469                          cv->EchoKanjiFirst = d;                          cv->EchoKanjiFirst = d;
1470                          EchoCodeNew = IdKanji;                          EchoCodeNew = IdKanji;
# Line 1562  int FAR PASCAL TextEchoMBCS(PComVar cv, Line 1571  int FAR PASCAL TextEchoMBCS(PComVar cv,
1571    
1572          } // end of "while {}"          } // end of "while {}"
1573    
1574            _free_locale(locale);
1575    
1576          return i;          return i;
1577  }  }
1578    

Legend:
Removed from v.3458  
changed lines
  Added in v.3462

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