Flexible encoding and support of locale paper size
[enscript.git] / src / main.c
index a9175db83a82dd5600411c25eab29e7d641a6424..de6bc338c384caae73f72b6d447f095a6b8c7593 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "gsint.h"
 #include "getopt.h"
+#include <locale.h>
+#include <limits.h>
 
 /*
  * Prototypes for static functions.
@@ -956,6 +958,10 @@ main (int argc, char *argv[])
    */
 #if HAVE_LC_MESSAGES
   setlocale (LC_MESSAGES, "");
+#endif
+  setlocale (LC_CTYPE, "");
+#ifdef LC_PAPER
+  setlocale (LC_PAPER, "");
 #endif
 #endif
 #if ENABLE_NLS