Use s2utbl as a fallback of TextDecoder

This commit is contained in:
kichikuou
2017-04-02 12:25:43 +09:00
parent ee83411bcd
commit 3fe4435523
3 changed files with 18 additions and 6 deletions
+9
View File
@@ -133,3 +133,12 @@ BYTE *sjis_toupper2(BYTE *src) {
sjis_toupper(dst);
return dst;
}
#ifdef __EMSCRIPTEN__
extern unsigned short *s2u[];
int sjis2unicode(int byte1, int byte2) {
return s2u[byte1 - 0x80][byte2 - 0x40];
}
#endif