aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r--gcc/cppmain.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c
index a70b417..246c152 100644
--- a/gcc/cppmain.c
+++ b/gcc/cppmain.c
@@ -100,18 +100,7 @@ general_init (argv0)
xmalloc_set_program_name (progname);
-/* LC_CTYPE determines the character set used by the terminal so it
- has to 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 ();
}
/* Handle switches, preprocess and output. */