Commit 04650349 by Philipp Thomas Committed by Philipp Thomas

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
parent 4119f8a1
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> 2000-12-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* c-common.c (c_common_nodes_and_builtins): Create a * c-common.c (c_common_nodes_and_builtins): Create a
......
...@@ -870,9 +870,16 @@ main (argc, argv) ...@@ -870,9 +870,16 @@ main (argc, argv)
COLLECT2_HOST_INITIALIZATION; COLLECT2_HOST_INITIALIZATION;
#endif #endif
/* LC_CTYPE determines the character set used by the terminal so it has be set
to output messages correctly. */
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#else
setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
......
...@@ -129,9 +129,16 @@ general_init (const char *argv0) ...@@ -129,9 +129,16 @@ general_init (const char *argv0)
xmalloc_set_program_name (progname); 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 #ifdef HAVE_LC_MESSAGES
setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#else
setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
} }
......
...@@ -5248,9 +5248,16 @@ main (argc, argv) ...@@ -5248,9 +5248,16 @@ main (argc, argv)
GCC_DRIVER_HOST_INITIALIZATION; GCC_DRIVER_HOST_INITIALIZATION;
#endif #endif
/* LC_CTYPE determines the character set used by the terminal so it has be set
to output messages correctly. */
#ifdef HAVE_LC_MESSAGES #ifdef HAVE_LC_MESSAGES
setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#else
setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
......
...@@ -242,9 +242,16 @@ main (argc, argv) ...@@ -242,9 +242,16 @@ main (argc, argv)
int argc; int argc;
char **argv; 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 #ifdef HAVE_LC_MESSAGES
setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#else
setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
......
...@@ -4583,9 +4583,16 @@ main (argc, argv) ...@@ -4583,9 +4583,16 @@ main (argc, argv)
#endif #endif
pname = pname ? pname+1 : argv[0]; 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 #ifdef HAVE_LC_MESSAGES
setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#else
setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
......
...@@ -4525,9 +4525,16 @@ main (argc, argv) ...@@ -4525,9 +4525,16 @@ main (argc, argv)
--p; --p;
progname = 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 #ifdef HAVE_LC_MESSAGES
setlocale (LC_CTYPE, "");
setlocale (LC_MESSAGES, ""); setlocale (LC_MESSAGES, "");
#else
setlocale (LC_ALL, "");
#endif #endif
(void) bindtextdomain (PACKAGE, localedir); (void) bindtextdomain (PACKAGE, localedir);
(void) textdomain (PACKAGE); (void) textdomain (PACKAGE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment