File bugzilla-292412-special-encoding-handling-also-for-chinese.patch of Package gxdview

Index: groff-1.18.1.1/src/libs/libgroff/encoding.cc
===================================================================
--- groff-1.18.1.1.orig/src/libs/libgroff/encoding.cc
+++ groff-1.18.1.1/src/libs/libgroff/encoding.cc
@@ -392,7 +392,7 @@ init_encoding_handler()
   else
     charset = "";
 #endif
-  if (strncmp(locale, "ja", 2) == 0) {
+  if (strncmp(locale, "ja", 2) == 0||strncmp(locale,"zh" ,2) == 0) {
     select_input_encoding_handler(charset);
     select_output_encoding_handler(charset);
   } else if ((!device || strcmp(device, "ascii8") == 0)) {
openSUSE Build Service is sponsored by