]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Treat charset=CHARSET like ASCII.
authorBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2001 08:49:58 +0000 (08:49 +0000)
committerBruno Haible <bruno@clisp.org>
Mon, 22 Oct 2001 08:49:58 +0000 (08:49 +0000)
src/ChangeLog
src/write-po.c

index e6180713af7e5ff85fe19b3b46778683465f9779..5c71997b626d94d88d416e6b5fe602795e9fa3c3 100644 (file)
@@ -1,3 +1,8 @@
+2001-09-19  Bruno Haible  <haible@clisp.cons.org>
+
+       * write-po.c (msgdomain_list_print): Treat charset=CHARSET as if it
+       were absent, i.e. like ASCII, not like an unknown 8-bit encoding.
+
 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
 
        * msgl-equal.h: New file.
index a71c245235023ce7b99b747bc64b58e1cac36c36..f3cec17b0e1b5b9e84bb7bd53caab56d4e9e5ff9 100644 (file)
@@ -905,6 +905,10 @@ msgdomain_list_print (mdlp, filename, force, debug)
              charset = (char *) alloca (len + 1);
              memcpy (charset, charsetstr, len);
              charset[len] = '\0';
+
+             /* Treat the dummy default value as if it were absent.  */
+             if (strcmp (charset, "CHARSET") == 0)
+               charset = "ASCII";
            }
        }