about summary refs log tree commit diff stats
path: root/WWW/Library/Implementation/SGML.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-01-03 02:10:17 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2019-01-03 02:10:17 +0000
commit567157ae3b72d6fdccd659a9bcadd2bb505cb28f (patch)
tree9db228704ba4a7f0e3359e7ab7f32e294caa9fbf /WWW/Library/Implementation/SGML.c
parenta45e2ee8f04e0b8424ad185dcf81ec8fa884cc91 (diff)
downloadlynx-snapshots-567157ae3b72d6fdccd659a9bcadd2bb505cb28f.tar.gz
snapshot of project "lynx", label v2-9-0dev_0i
Diffstat (limited to 'WWW/Library/Implementation/SGML.c')
-rw-r--r--WWW/Library/Implementation/SGML.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index f9c2c8bc..6f0ebc26 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: SGML.c,v 1.165 2018/12/29 00:50:51 tom Exp $
+ * $LynxId: SGML.c,v 1.167 2019/01/02 21:06:28 tom Exp $
  *
  *			General SGML Parser code		SGML.c
  *			========================
@@ -108,7 +108,6 @@ BOOL HTPassHighCtrlNum = FALSE;	/* Pass &#128;-&#159; raw.      */
 /*	The State (context) of the parser
  *
  *	This is passed with each call to make the parser reentrant
- *
  */
 
 #define MAX_ATTRIBUTES 36	/* Max number of attributes per element */
@@ -1666,6 +1665,7 @@ static void SGML_character(HTStream *me, int c_in)
     /*
      * If we want the raw input converted to Unicode, try that now.  - FM
      */
+#ifdef EXP_JAPANESEUTF8_SUPPORT
     /* Convert ISO-2022-JP to Unicode (charset=iso-2022-jp is unrecognized) */
 #define IS_JIS7_HILO(c) (0x20<(c)&&(c)<0x7F)
     if (UTF8_TTY_ISO2022JP && (me->state == S_nonascii_text
@@ -1698,6 +1698,7 @@ static void SGML_character(HTStream *me, int c_in)
 	}
 	goto top1;
     }
+#endif /* EXP_JAPANESEUTF8_SUPPORT */
     if (me->T.trans_to_uni &&
 #ifdef EXP_JAPANESEUTF8_SUPPORT
 	((strcmp(LYCharSet_UC[me->inUCLYhndl].MIMEname, "euc-jp") == 0) ||
@@ -1743,7 +1744,7 @@ static void SGML_character(HTStream *me, int c_in)
 	}
 	goto top1;
     } else if (me->T.trans_to_uni &&
-#endif
+#endif /* EXP_JAPANESEUTF8_SUPPORT */
 	/* S/390 -- gil -- 0744 */
 	       ((TOASCII(clong) >= LYlowest_eightbit[me->inUCLYhndl]) ||
 		(clong < ' ' && clong != 0 &&