|
|
| version 1.1, 2003/10/16 17:57:16 | version 1.2, 2003/11/13 17:02:25 |
|---|---|
| Line 28 void codecnv_sjis2euc(char *euc, UINT ec | Line 28 void codecnv_sjis2euc(char *euc, UINT ec |
| } | } |
| ecnt--; | ecnt--; |
| while(1) { | while(1) { |
| s = *sjis++; | s = (BYTE)*sjis++; |
| if (s < 0x80) { // ascii | if (s < 0x80) { // ascii |
| if (!s) { | if (!s) { |
| break; | break; |
| Line 40 void codecnv_sjis2euc(char *euc, UINT ec | Line 40 void codecnv_sjis2euc(char *euc, UINT ec |
| *euc++ = (char)s; | *euc++ = (char)s; |
| } | } |
| else if ((((s ^ 0x20) - 0xa1) & 0xff) < 0x2f) { | else if ((((s ^ 0x20) - 0xa1) & 0xff) < 0x2f) { |
| c = *sjis++; | c = (BYTE)*sjis++; |
| if (!c) { | if (!c) { |
| break; | break; |
| } | } |