summaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-01-30 14:34:11 +0000
committerJeff Law <law@gcc.gnu.org>1999-01-30 07:34:11 -0700
commitd9b5343057b44e50f6d41f892f4fbfda1c67faeb (patch)
treeddac1203abdea6399fafe179d3271b9d9cee5aa8 /gcc/collect2.c
parent5989c468fb8579b16e0bbb2b4528a832cabc5931 (diff)
downloadgcc-d9b5343057b44e50f6d41f892f4fbfda1c67faeb.tar.gz
cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES is defined.
* cccp.c (main): Only call setlocale (LC_MESSAGES, ...) if LC_MESSAGES is defined. * collect2.c (main): Likewise. * cppmain.c (main): Likewise. * gcc.c (main): Likewise. * gcov.c (main): Likewise. * protoize.c (main): Likewise. * toplev.c (main): Likewise. From-SVN: r24923
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index f273bb8c67f..9a538af9a7a 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1002,7 +1002,9 @@ main (argc, argv)
int first_file;
int num_c_args = argc+9;
+#ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, "");
+#endif
bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE);