Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > media > main-release-src > by-pkgid > 0f7420a84c161dc09918cbd820a60a9f > files > 2

mpage-2.5.5-5mdv2009.0.src.rpm

--- mpage.c.orig	2003-03-10 15:41:02.000000000 +0100
+++ mpage.c	2003-03-10 15:41:58.000000000 +0100
@@ -44,7 +44,8 @@
     struct sheet *thesheet;
     char outcommand[LINESIZE]; /* the command which is the output filter */
 
-    current_locale = setlocale(LC_ALL,"");
+    setlocale(LC_ALL,"");
+    current_locale = setlocale(LC_ALL,NULL);
 
    
 #ifdef __EMX__
--- text.c.orig	2003-03-10 15:43:10.000000000 +0100
+++ text.c	2003-03-10 15:44:10.000000000 +0100
@@ -400,7 +400,7 @@
      */
     while (gathering && textp - text < LINESIZE - 5) {
 #ifdef KANJI
-        if (current_locale && !strncmp(current_locale,"ja_JP",5)) {
+        if (current_locale && !strncmp(current_locale,"ja",2)) {
             if (prevkanj) {
                 *kp = prevkanj;
                 if (prevkanj >= 0x0100)