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 9539 by zmatsuo, Sat Nov 20 15:13:41 2021 UTC revision 9598 by zmatsuo, Sat Dec 11 16:31:48 2021 UTC
# Line 62  Line 62 
62  #include "vtterm.h"  #include "vtterm.h"
63    
64  #include "unicode_test.h"  #include "unicode_test.h"
65    // #define DEBUG_DUMP_INPUTCODE 1
66    
67  static void ParseFirst(BYTE b);  static void ParseFirst(BYTE b);
68    
# Line 6227  static BOOL ParseFirstRus(BYTE b) Line 6228  static BOOL ParseFirstRus(BYTE b)
6228          return FALSE;          return FALSE;
6229  }  }
6230    
6231    static BOOL ParseEnglish(BYTE b)
6232    {
6233            unsigned short u16 = 0;
6234            int part = KanjiCodeToISO8859Part(ts.KanjiCode);
6235            int r = UnicodeFromISO8859(part, b, &u16);
6236            if (r == 0) {
6237                    return FALSE;
6238            }
6239            if (u16 < 0x100) {
6240                    ParseASCII((BYTE)u16);
6241            }
6242            else {
6243                    PutU32(u16);
6244            }
6245            return TRUE;
6246    }
6247    
6248  static void ParseFirst(BYTE b)  static void ParseFirst(BYTE b)
6249  {  {
6250          switch (ts.Language) {          switch (ts.Language) {
# Line 6289  static void ParseFirst(BYTE b) Line 6307  static void ParseFirst(BYTE b)
6307                          }                          }
6308                  }                  }
6309                  break;                  break;
6310            case IdEnglish: {
6311                    if (ParseEnglish(b)) {
6312                            return;
6313                    }
6314                    break;
6315            }
6316          }          }
6317    
6318          if (SSflag) {          if (SSflag) {

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

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