summaryrefslogtreecommitdiffstats
path: root/groff-1.18.1-fix15.patch
blob: 5a9fa64848ed7b6808e8cb513ad31b53dc8bf2b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- groff-1.18.1/src/libs/libgroff/encoding.cc.fix15	2004-03-08 16:13:15.825000416 +0100
+++ groff-1.18.1/src/libs/libgroff/encoding.cc	2004-03-08 16:14:41.451983136 +0100
@@ -384,21 +384,10 @@
   }
   /* otherwise */
 #if HAVE_LANGINFO_CODESET
-  charset = nl_langinfo(CODESET);
-#else
-  charset = strchr(locale, '.');
-  if (charset)
-    ++charset;
-  else
-    charset = "";
+  locale = nl_langinfo(CODESET);
 #endif
-  if (strncmp(locale, "ja", 2) == 0) {
-    select_input_encoding_handler(charset);
-    select_output_encoding_handler(charset);
-  } else if ((!device || strcmp(device, "ascii8") == 0)) {
-    select_input_encoding_handler(NULL);
-    select_output_encoding_handler(NULL);
-  }
+  select_input_encoding_handler(locale);
+  select_output_encoding_handler(locale);
 #endif
   return;
 }