]> sjero.net Git - wget/blobdiff - src/main.c
[svn] Commit several fixes.
[wget] / src / main.c
index cb724787615ea5e9da92636992d6f4be074dd3c7..2d1276b8100ea5ef34f84d68e056a643c38b4992 100644 (file)
@@ -87,7 +87,11 @@ i18n_initialize (void)
      things up.  For example, when in a foreign locale, Solaris
      strptime() fails to handle international dates correctly, which
      makes http_atotm() malfunction.  */
+#ifdef LC_MESSAGES
   setlocale (LC_MESSAGES, "");
+#else
+  setlocale (LC_ALL, "");
+#endif
   /* Set the text message domain.  */
   bindtextdomain ("wget", LOCALEDIR);
   textdomain ("wget");