]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/language.c
Fix typos in snprintf/vsnprintf emulation code.
[thirdparty/cups.git] / cups / language.c
index 78d7d1573d4e7302400acb7c6b0eaf2d2bd0c3e0..e0641699035d7d7bb3be705d92273bf900e6a2c4 100644 (file)
  */
 
 #include "cups-private.h"
+#include "debug-internal.h"
 #ifdef HAVE_LANGINFO_H
 #  include <langinfo.h>
 #endif /* HAVE_LANGINFO_H */
-#ifdef WIN32
+#ifdef _WIN32
 #  include <io.h>
 #else
 #  include <unistd.h>
-#endif /* WIN32 */
+#endif /* _WIN32 */
 #ifdef HAVE_COREFOUNDATION_H
 #  include <CoreFoundation/CoreFoundation.h>
 #endif /* HAVE_COREFOUNDATION_H */
@@ -1016,7 +1017,7 @@ _cupsMessageLoad(const char *filename,    /* I - Message catalog to load */
 
        if (m)
        {
-         if (m->str && m->str[0])
+         if (m->str && (m->str[0] || (flags & _CUPS_MESSAGE_EMPTY)))
          {
            cupsArrayAdd(a, m);
          }
@@ -1113,7 +1114,7 @@ _cupsMessageLoad(const char *filename,    /* I - Message catalog to load */
 
     if (m)
     {
-      if (m->str && m->str[0])
+      if (m->str && (m->str[0] || (flags & _CUPS_MESSAGE_EMPTY)))
       {
        cupsArrayAdd(a, m);
       }