summaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-17 14:35:05 +0000
committerpthomas <pthomas@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-17 14:35:05 +0000
commitb3962449c1f195379197777f3c5a68a62873ee74 (patch)
tree4a5152f64be733491306c545521e3e276b821acf /gcc/gcc.c
parent2bd8a422171545a85ae540115737a53ffb836b99 (diff)
downloadgcc-b3962449c1f195379197777f3c5a68a62873ee74.tar.gz
2000-12-14 Philipp Thomas <pthomas@suse.de>
* protoize.c (main): Correctly set locale categories. * gcc.c (main): Likewise. * cppmain.c (general_init): Likewise. * toplev.c (main): Likewise. * gcov.c (main): Likewise. * collect2.c (main): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38331 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 242067a02c7..33b8a893652 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -5248,9 +5248,16 @@ main (argc, argv)
GCC_DRIVER_HOST_INITIALIZATION;
#endif
+/* LC_CTYPE determines the character set used by the terminal so it has be set
+ to output messages correctly. */
+
#ifdef HAVE_LC_MESSAGES
+ setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, "");
+#else
+ setlocale (LC_ALL, "");
#endif
+
(void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE);