about summary refs log tree commit diff stats
path: root/src/UCAux.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>1999-03-04 10:56:18 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-03-04 10:56:18 -0500
commitf7c3c4ca429260c4d056b1e032e05162e25554ca (patch)
tree8317fd8852ed2996cf2edf2838c7f43f4023bcd5 /src/UCAux.c
parentc5fef0d4ab035d8fd988270a39ed6f9d0e9b214c (diff)
downloadlynx-snapshots-f7c3c4ca429260c4d056b1e032e05162e25554ca.tar.gz
snapshot of project "lynx", label v2-8-2dev_18
Diffstat (limited to 'src/UCAux.c')
-rw-r--r--src/UCAux.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/UCAux.c b/src/UCAux.c
index 3c952a33..bf4ab8b0 100644
--- a/src/UCAux.c
+++ b/src/UCAux.c
@@ -1,6 +1,7 @@
 #include <HTUtils.h>
 
 #include <HTCJK.h>
+#include <UCMap.h>
 #include <UCDefs.h>
 #include <HTStream.h>
 #include <UCAux.h>
@@ -17,13 +18,9 @@ PUBLIC BOOL UCCanUniTranslateFrom ARGS1(
 	return NO;
     if (!strcmp(LYCharSet_UC[from].MIMEname, "x-transparent"))
 	return NO;
-    if (from == LATIN1) {
-	if (LYCharSet_UC[from].codepoints & (UCT_CP_SUPERSETOF_LAT1))
-	    return YES;
-    }
 
-    /* others YES, but check for lost tables to be sure */
-    return (LYCharSet_UC[from].UChndl >= 0);
+    /* others YES */
+    return YES;
 }
 
 PUBLIC BOOL UCCanTranslateUniTo ARGS1(
@@ -31,6 +28,11 @@ PUBLIC BOOL UCCanTranslateUniTo ARGS1(
 {
     if (to < 0)
 	return NO;
+/*???
+    if (!strcmp(LYCharSet_UC[to].MIMEname, "x-transparent"))
+       return NO;
+*/
+
     return YES;			/* well at least some characters... */
 }
 
@@ -51,7 +53,7 @@ PUBLIC BOOL UCCanTranslateFromTo ARGS2(
 	CONST char * toname = LYCharSet_UC[to].MIMEname;
 	if (!strcmp(fromname, "x-transparent") ||
 	    !strcmp(toname, "x-transparent")) {
-	    return YES;
+	    return YES; /* ??? */
 	} else if (!strcmp(fromname, "us-ascii")) {
 	    return YES;
 	}
@@ -80,7 +82,7 @@ PUBLIC BOOL UCCanTranslateFromTo ARGS2(
 	    return NO;
 	}
     }
-    return (LYCharSet_UC[from].UChndl >= 0);
+    return YES;    /* others YES */
 }
 
 /*