From 04650349dad5d0a41535b16dfd026bbd81a3f5bb Mon Sep 17 00:00:00 2001 From: Philipp Thomas Date: Sun, 17 Dec 2000 14:35:05 +0000 Subject: protoize.c (main): Correctly set locale categories. 2000-12-14 Philipp Thomas * 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 --- gcc/gcov.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/gcov.c') 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); -- cgit v1.1