diff options
Diffstat (limited to 'gcc/cpplex.c')
-rw-r--r-- | gcc/cpplex.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/cpplex.c b/gcc/cpplex.c index 169730d..7a8af90 100644 --- a/gcc/cpplex.c +++ b/gcc/cpplex.c @@ -89,6 +89,16 @@ static tokenrun *next_tokenrun PARAMS ((tokenrun *)); static unsigned int hex_digit_value PARAMS ((unsigned int)); static _cpp_buff *new_buff PARAMS ((size_t)); +/* Change to the native locale for multibyte conversions. */ +void +_cpp_init_mbchar () +{ +#ifdef MULTIBYTE_CHARS + setlocale (LC_CTYPE, ""); + GET_ENVIRONMENT (literal_codeset, "LANG"); +#endif +} + /* Utility routine: Compares, the token TOKEN to the NUL-terminated string STRING. |