]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Warn when the encodings differ.
authorBruno Haible <bruno@clisp.org>
Thu, 13 Aug 2009 12:06:07 +0000 (14:06 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 13 Aug 2009 12:06:07 +0000 (14:06 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/msgexec.c

index b84f43d25e6e8296ae5bca2d9be49a5ab41ecec7..389f5ffcbf4bc446249fb1a8db9c6bb47ae7b158 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-13  Bruno Haible  <bruno@clisp.org>
+
+       * msgexec.c: Include msgl-charset.h.
+       (main): Invoke compare_po_locale_charsets.
+
 2009-08-10  Bruno Haible  <bruno@clisp.org>
 
        Avoid a gcc warning.
index 3f9c7e7c3dfa3dc06da0c8a55b81f7d3ab0b117d..834190b402475f3b85172666b11896ea1ede397d 100644 (file)
@@ -44,6 +44,7 @@
 #include "read-po.h"
 #include "read-properties.h"
 #include "read-stringtable.h"
+#include "msgl-charset.h"
 #include "xalloc.h"
 #include "full-write.h"
 #include "findprog.h"
@@ -209,6 +210,9 @@ There is NO WARRANTY, to the extent permitted by law.\n\
   /* Read input file.  */
   result = read_catalog_file (input_file, input_syntax);
 
+  /* Warn if the current locale is not suitable for this PO file.  */
+  compare_po_locale_charsets (result);
+
   if (strcmp (sub_name, "0") != 0)
     {
       /* Block SIGPIPE for this process and for the subprocesses.