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/protoize.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gcc/protoize.c') diff --git a/gcc/protoize.c b/gcc/protoize.c index 6816952..6780b00 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -4583,9 +4583,16 @@ main (argc, argv) #endif pname = pname ? pname+1 : argv[0]; +/* 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