From 41f27b48c592dee7d229c81b5899107b5399b1bc Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 1 Jan 2017 02:03:07 -0500 Subject: snapshot of project "lynx", label v2-8-9dev_11h --- WWW/Library/Implementation/SGML.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'WWW/Library') 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; } -- cgit 1.4.1-2-gfad0