summaryrefslogtreecommitdiff
path: root/gcc/cppmain.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-30 14:34:11 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-01-30 14:34:11 +0000
commit03a7f3a7d3c31c9bab37612318d197c6aa115e02 (patch)
treeddac1203abdea6399fafe179d3271b9d9cee5aa8 /gcc/cppmain.c
parent51a37ccae91f4e77ae0a34c5828413c4f2938a28 (diff)
downloadgcc-03a7f3a7d3c31c9bab37612318d197c6aa115e02.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24923 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r--gcc/cppmain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c
index 764114f3880..7f8bac7f8c8 100644
--- a/gcc/cppmain.c
+++ b/gcc/cppmain.c
@@ -69,7 +69,9 @@ main (argc, argv)
while (p != argv[0] && p[-1] != '/') --p;
progname = p;
+#ifdef HAVE_LC_MESSAGES
setlocale (LC_MESSAGES, "");
+#endif
bindtextdomain (PACKAGE, localedir);
textdomain (PACKAGE);