diff options
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |