aboutsummaryrefslogtreecommitdiff
path: root/gas/gasp.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1998-04-29 02:51:43 +0000
committerTom Tromey <tromey@redhat.com>1998-04-29 02:51:43 +0000
commit2614063dcee048d9f2f665afbf579aceaa611591 (patch)
treef741353f1c25b1f3c2a6786eaaee8e3a966be208 /gas/gasp.c
parentfaaba487f80231192b048eaac6400d42cfdff10c (diff)
downloadgdb-2614063dcee048d9f2f665afbf579aceaa611591.zip
gdb-2614063dcee048d9f2f665afbf579aceaa611591.tar.gz
gdb-2614063dcee048d9f2f665afbf579aceaa611591.tar.bz2
* 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.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r--gas/gasp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/gasp.c b/gas/gasp.c
index 1b72838..f8e4353 100644
--- a/gas/gasp.c
+++ b/gas/gasp.c
@@ -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);