diff options
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index c8fafc3e2c1..c850608fe63 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -873,18 +873,7 @@ main (argc, argv) signal (SIGCHLD, SIG_DFL); #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); + gcc_init_libintl (); /* Do not invoke xcalloc before this point, since locale needs to be set first, in case a diagnostic is issued. */ |