* as.c (main): Conditionally call setlocale.
authorTom Tromey <tromey@redhat.com>
Wed, 29 Apr 1998 02:51:43 +0000 (02:51 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 29 Apr 1998 02:51:43 +0000 (02:51 +0000)
* gasp.c (main): Likewise.
* asintl.h: Include <locale.h> if HAVE_LOCALE_H.
(LC_MESSAGES): Now can be defined even when ENABLE_NLS.

gas/ChangeLog
gas/gasp.c

index 4e23d74c5f04e8d2b3f4e8ffcb57f61dfcff4938..91f0412bd2c289301d99e8e43c4c83f04a3d322e 100644 (file)
@@ -1,3 +1,10 @@
+Tue Apr 28 19:16:26 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * as.c (main): Conditionally call setlocale.
+       * gasp.c (main): Likewise.
+       * asintl.h: Include <locale.h> if HAVE_LOCALE_H.
+       (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
+
 start-sanitize-d30v
 Tue Apr 28 18:33:23 1998  Frank Ch. Eigler  <fche@cygnus.com>
 
index 1b72838ed458197b291835582d0698c6417d665e..f8e435388923fed121ca15fe99661133d101ef59 100644 (file)
@@ -3605,7 +3605,9 @@ main (argc, argv)
   ifstack[0].on = 1;
   ifi = 0;
 
+#ifdef HAVE_SETLOCALE
   setlocale (LC_MESSAGES, "");
+#endif
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);