]> gcc.gnu.org Git - gcc.git/commitdiff
protoize.c (main): Correctly set locale categories.
authorPhilipp Thomas <pthomas@suse.de>
Sun, 17 Dec 2000 14:35:05 +0000 (14:35 +0000)
committerPhilipp Thomas <pthomas@gcc.gnu.org>
Sun, 17 Dec 2000 14:35:05 +0000 (14:35 +0000)
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

gcc/ChangeLog
gcc/collect2.c
gcc/cppmain.c
gcc/gcc.c
gcc/gcov.c
gcc/protoize.c
gcc/toplev.c

index dd670228212c04e126d4c3c0d4bd6c9749c4ad93..5aa47d715d1f2aff9f5d6ab011b21309c0990941 100644 (file)
@@ -1,3 +1,11 @@
+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.
+
 2000-12-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * c-common.c (c_common_nodes_and_builtins): Create a
index 6792eef4fbb96eb70890e887003898fee49473c7..fcfdb34d76ddc9f8022754d6b7f88f0891a07762 100644 (file)
@@ -870,9 +870,16 @@ main (argc, argv)
   COLLECT2_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);
 
index 7e12d6befc79340fde924a1b0205b30a77c63e7f..f3bf2a0e57ca9149db67684ac8fb37ae865825b9 100644 (file)
@@ -129,9 +129,16 @@ general_init (const char *argv0)
 
   xmalloc_set_program_name (progname);
 
+/* 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);
 }
index 242067a02c7c7af4431824d61167f53f97bdcb77..33b8a8936526e32836a6993ed2cb03c87088362f 100644 (file)
--- 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);
 
index a1c57e524413cda95d4d3734cda232b766e42094..457c4adec97621409289718ae13a7cf73ef68ef3 100644 (file)
@@ -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);
 
index 6816952ef09ed30835a66a1be644806252238a3b..6780b00216160c49cd13fa5cf10c19972af53dc7 100644 (file)
@@ -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);
 
index 1e98568d7b3151e86fb3271ae7cfa5c90988222d..572532f074962afe67a89471fbfb88c45b601a9e 100644 (file)
@@ -4525,9 +4525,16 @@ main (argc, argv)
     --p;
   progname = p;
 
+/* 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);
 
This page took 2.69845 seconds and 5 git commands to generate.