Browse Subversion Repository
Diff of /trunk/teraterm/teraterm/vtterm.c
Parent Directory
| Revision Log
| Patch
| 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 |
|
|
| 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) { |
| 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 |
|
|
|