]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Applied Philipp Thomas's safe-ctype patch. Published in
[wget] / src / main.c
index ccfeffea8420cab3d49386c83d6a06c518ba17a0..d2ac46f77284af47636d9bd082728c85ae4eca68 100644 (file)
@@ -21,7 +21,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <ctype.h>
 #ifdef HAVE_UNISTD_H
 # include <unistd.h>
 #endif /* HAVE_UNISTD_H */
@@ -90,6 +89,7 @@ i18n_initialize (void)
      makes http_atotm() malfunction.  */
 #ifdef LC_MESSAGES
   setlocale (LC_MESSAGES, "");
+  setlocale (LC_CTYPE, "");
 #else
   setlocale (LC_ALL, "");
 #endif