diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2017-01-01 02:03:07 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2017-01-01 02:03:07 -0500 |
commit | 41f27b48c592dee7d229c81b5899107b5399b1bc (patch) | |
tree | 5344eb583ea94abb8a6f731e38a649f46afa0df7 /WWW/Library | |
parent | ac3144a9cb2351a389a740159468698886eeb7f3 (diff) | |
download | lynx-snapshots-41f27b48c592dee7d229c81b5899107b5399b1bc.tar.gz |
snapshot of project "lynx", label v2-8-9dev_11h
Diffstat (limited to 'WWW/Library')
-rw-r--r-- | WWW/Library/Implementation/SGML.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 47dbc306..138ce334 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -1,5 +1,5 @@ /* - * $LynxId: SGML.c,v 1.159 2016/11/24 20:08:10 tom Exp $ + * $LynxId: SGML.c,v 1.160 2017/01/01 00:56:18 Takeshi.Hataguchi Exp $ * * General SGML Parser code SGML.c * ======================== @@ -4565,15 +4565,15 @@ unsigned char *EUC_TO_SJIS1(unsigned HI, unsigned LO, unsigned char *SJCODE) { - if (HI == 0x8E) { - unsigned char HI_data[2]; - unsigned char LO_data[2]; + unsigned char HI_data[2]; + unsigned char LO_data[2]; - HI_data[0] = UCH(HI); - LO_data[0] = UCH(LO); + HI_data[0] = UCH(HI); + LO_data[0] = UCH(LO); + if (HI == 0x8E) { JISx0201TO0208_EUC(HI, LO, HI_data, LO_data); } - JIS_TO_SJIS1(UCH(HI & 0x7F), UCH(LO & 0x7F), SJCODE); + JIS_TO_SJIS1(UCH(HI_data[0] & 0x7F), UCH(LO_data[0] & 0x7F), SJCODE); return SJCODE; } |