aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcov.c
diff options
context:
space:
mode:
authorPhilipp Thomas <pthomas@suse.de>2000-12-17 14:35:05 +0000
committerPhilipp Thomas <pthomas@gcc.gnu.org>2000-12-17 14:35:05 +0000
commit04650349dad5d0a41535b16dfd026bbd81a3f5bb (patch)
tree4a5152f64be733491306c545521e3e276b821acf /gcc/gcov.c
parent4119f8a1873ab218ea15c3f549db1b0fce05bdcd (diff)
downloadgcc-04650349dad5d0a41535b16dfd026bbd81a3f5bb.zip
gcc-04650349dad5d0a41535b16dfd026bbd81a3f5bb.tar.gz
gcc-04650349dad5d0a41535b16dfd026bbd81a3f5bb.tar.bz2
protoize.c (main): Correctly set locale categories.
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. From-SVN: r38331
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r--gcc/gcov.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/gcov.c b/gcc/gcov.c
index a1c57e5..457c4ad 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -242,9 +242,16 @@ main (argc, argv)
int argc;
char **argv;
{
+/* 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);