about summary refs log tree commit diff stats
path: root/src/LYMain.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2014-02-04 01:58:51 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2014-02-04 01:58:51 -0500
commitef8b89f06712f35312a272531e86038876644864 (patch)
tree6f42cbca3830591a987f38cdfe2f057facd4419c /src/LYMain.c
parentf25ab35dfce8d5620abc2a9b58594ba39d87ca21 (diff)
downloadlynx-snapshots-ef8b89f06712f35312a272531e86038876644864.tar.gz
snapshot of project "lynx", label v2-8-8pre_3c
Diffstat (limited to 'src/LYMain.c')
-rw-r--r--src/LYMain.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/LYMain.c b/src/LYMain.c
index 7a2ef0ef..fc4008f9 100644
--- a/src/LYMain.c
+++ b/src/LYMain.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: LYMain.c,v 1.251 2013/11/28 11:20:21 tom Exp $
+ * $LynxId: LYMain.c,v 1.252 2014/02/04 01:25:16 tom Exp $
  */
 #include <HTUtils.h>
 #include <HTTP.h>
@@ -594,6 +594,7 @@ int justify_max_void_percent = 35;
 #ifdef USE_LOCALE_CHARSET
 BOOLEAN LYLocaleCharset = FALSE;
 #endif
+BOOLEAN assumed_charset = FALSE;
 
 #ifndef NO_DUMP_WITH_BACKSPACES
 BOOLEAN with_backspaces = FALSE;
@@ -2497,13 +2498,14 @@ static int anonymous_fun(char *next_arg GCC_UNUSED)
 /* -assume_charset */
 static int assume_charset_fun(char *next_arg)
 {
+    assumed_charset = TRUE;
     UCLYhndl_for_unspec = safeUCGetLYhndl_byMIME(next_arg);
     StrAllocCopy(UCAssume_MIMEcharset,
 		 LYCharSet_UC[UCLYhndl_for_unspec].MIMEname);
-/*	   this may be a memory for bogus typo -
-    StrAllocCopy(UCAssume_MIMEcharset, next_arg);
-    LYLowerCase(UCAssume_MIMEcharset);   */
-
+    CTRACE((tfp, "assume_charset_fun %s ->%d ->%s\n",
+	    NonNull(next_arg),
+	    UCLYhndl_for_unspec,
+	    UCAssume_MIMEcharset));
     return 0;
 }