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 9584 by zmatsuo, Tue Dec 7 14:39:20 2021 UTC revision 9598 by zmatsuo, Sat Dec 11 16:31:48 2021 UTC
# Line 51  Line 51 
51  #include "win32helper.h"  #include "win32helper.h"
52  #include "asprintf.h"  #include "asprintf.h"
53  #include "fileread.h"  #include "fileread.h"
54    #include "../teraterm/unicode.h"
55    
56  #include "ttcmn_dup.h"  #include "ttcmn_dup.h"
57    
# Line 168  static void CopyFiles(const wchar_t *fil Line 169  static void CopyFiles(const wchar_t *fil
169  static void ConvertIniFiles(const wchar_t *filelist[],  const wchar_t *dir, const wchar_t *date_str)  static void ConvertIniFiles(const wchar_t *filelist[],  const wchar_t *dir, const wchar_t *date_str)
170  {  {
171          while(1) {          while(1) {
172                    wchar_t *fname;
173                  if (*filelist == NULL) {                  if (*filelist == NULL) {
174                          break;                          break;
175                  }                  }
176    
177                  wchar_t *fname = NULL;                  fname = NULL;
178                  awcscats(&fname, dir, L"\\", *filelist, NULL);                  awcscats(&fname, dir, L"\\", *filelist, NULL);
179                  ConvertIniFileCharCode(fname, date_str);                  ConvertIniFileCharCode(fname, date_str);
180                  free(fname);                  free(fname);
# Line 1349  static size_t MakeOutputString(PComVar c Line 1351  static size_t MakeOutputString(PComVar c
1351                          TempStr[TempLen++] = mb_char[1];                          TempStr[TempLen++] = mb_char[1];
1352                  }                  }
1353          } else if (cv->Language == IdEnglish) {          } else if (cv->Language == IdEnglish) {
1354                  TempStr[TempLen++] = u32;                  char byte;
1355                    int part = KanjiCodeToISO8859Part(states->KanjiCode);
1356                    int r = UnicodeToISO8859(part, u32, &byte);
1357                    TempStr[TempLen++] = byte;
1358          } else {          } else {
1359                  assert(FALSE);                  assert(FALSE);
1360          }          }

Legend:
Removed from v.9584  
changed lines
  Added in v.9598

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