about summary refs log tree commit diff stats
path: root/src/LYCharSets.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYCharSets.c')
-rw-r--r--src/LYCharSets.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/LYCharSets.c b/src/LYCharSets.c
index 7e1b263e..891b795f 100644
--- a/src/LYCharSets.c
+++ b/src/LYCharSets.c
@@ -919,6 +919,12 @@ PUBLIC UCode_t HTMLGetEntityUCValue ARGS1(
     /*
      *	Try UC_entity_info unicode_entities[].
      */
+#ifdef    NOT_ASCII  /* S/390 -- gil -- 1656 */
+    for (i = 0; i < HTML_dtd.number_of_unicode_entities; i++ ) {
+	/*
+	**  Linear search for NOT_ASCII.
+	*/
+#else  /* NOT_ASCII */
     for (low = 0, high = HTML_dtd.number_of_unicode_entities;
 	 high > low;
 	 diff < 0 ? (low = i+1) : (high = i)) {
@@ -926,12 +932,14 @@ PUBLIC UCode_t HTMLGetEntityUCValue ARGS1(
 	**  Binary search.
 	*/
 	i = (low + (high-low)/2);
+#endif /* NOT_ASCII  S/390 -- gil -- 1662 */
 	diff = strcmp(unicode_entities[i].name, name);	/* Case sensitive! */
 	if (diff == 0) {
 	    value = unicode_entities[i].code;
 	    break;
 	}
     }
+    /* } NOT_ASCII */
 
     return(value);
 }