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-01-18 12:35:47 -0500
committerThomas E. Dickey <dickey@invisible-island.net>1999-01-18 12:35:47 -0500
commitd97a65137382daf2f896a947ba680c095f7ab664 (patch)
tree6db3daec0d5c2f909ba586adff0ddc2ad96d84d9 /src/UCAux.c
parenta2e9461739dd215db90a5cee2c22a74e5f57d151 (diff)
downloadlynx-snapshots-d97a65137382daf2f896a947ba680c095f7ab664.tar.gz
snapshot of project "lynx", label v2-8-2dev_14
Diffstat (limited to 'src/UCAux.c')
-rw-r--r--src/UCAux.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/UCAux.c b/src/UCAux.c
index bbe5321c..3c952a33 100644
--- a/src/UCAux.c
+++ b/src/UCAux.c
@@ -13,11 +13,16 @@ PUBLIC BOOL UCCanUniTranslateFrom ARGS1(
 {
     if (from < 0)
 	return NO;
-    if (LYCharSet_UC[from].enc == UCT_ENC_7BIT ||
-	LYCharSet_UC[from].enc == UCT_ENC_UTF8)
-	return YES;
-    if (LYCharSet_UC[from].codepoints & (UCT_CP_SUBSETOF_LAT1))
-	return YES;
+    if (LYCharSet_UC[from].enc == UCT_ENC_CJK)
+	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);
 }
 
@@ -123,7 +128,7 @@ PUBLIC BOOL UCNeedNotTranslate ARGS2(
 	if (HTCJK == JAPANESE &&
 	    (!strcmp(fromname, "euc-jp") ||
 	     !strcmp(fromname, "shift_jis")))
-	    return YES;	/* ??? */
+	    return YES;	/* translate internally by lynx, no unicode */
 	return NO;	/* If not handled by (from == to) above. */
     }
     return NO;
@@ -151,7 +156,9 @@ PUBLIC void UCSetTransParams ARGS5(
     CONST LYUCcharset*,	p_out)
 {
     CTRACE(tfp, "UCSetTransParams: from %s(%d) to %s(%d)\n",
-	   p_in->MIMEname, p_in->UChndl, p_out->MIMEname, p_out->UChndl);
+/*	   p_in->MIMEname, p_in->UChndl, p_out->MIMEname, p_out->UChndl); */
+	   p_in->MIMEname,  UCGetLYhndl_byMIME(p_in->MIMEname),
+	   p_out->MIMEname, UCGetLYhndl_byMIME(p_out->MIMEname));
 
     /*
     **  Initialize this element to FALSE, and set it TRUE