diff options
author | Eric Christopher <echristo@gcc.gnu.org> | 2004-01-16 22:37:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2004-01-16 22:37:49 +0000 |
commit | cf551fbaca9987dccd728aa2cbaff67de7393fe3 (patch) | |
tree | 95190a526a0984976fac3a95910e9a5e961bea4e /gcc/cppinit.c | |
parent | 2f9c39f8fc04b38b6aac1ad71c83b22cede8b9e9 (diff) | |
download | gcc-cf551fbaca9987dccd728aa2cbaff67de7393fe3.zip gcc-cf551fbaca9987dccd728aa2cbaff67de7393fe3.tar.gz gcc-cf551fbaca9987dccd728aa2cbaff67de7393fe3.tar.bz2 |
cppcharset.c (one_iso88591_to_utf8): New function.
2004-01-16 Eric Christopher <echristo@redhat.com>
Chandrakala Chavva <cchavva@redhat.com>
* cppcharset.c (one_iso88591_to_utf8): New function.
(convert_iso88591_utf8): Ditto. Use.
(conversion_tab): Use.
(_cpp_input_to_utf8): New function.
(_cpp_init_iconv_buffer): Ditto.
(_cpp_close_iconv_buffer): Ditto.
* cpphash.h: Prototype new functions.
(cpp_buffer): Add input_cset_desc.
* cppinit.c: Add input_charset default.
* cpplib.c (cpp_push_buffer): Support init and
close of iconv.
* cpplib.h (cpp_options): Add input_charset.
From-SVN: r76000
Diffstat (limited to 'gcc/cppinit.c')
-rw-r--r-- | gcc/cppinit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 1332688..629da27 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -161,6 +161,9 @@ cpp_create_reader (enum c_lang lang, hash_table *table) CPP_OPTION (pfile, narrow_charset) = 0; CPP_OPTION (pfile, wide_charset) = 0; + /* Default the input character set to iso-8859-1 for now. */ + CPP_OPTION (pfile, input_charset) = "ISO-8859-1"; + /* A fake empty "directory" used as the starting point for files looked up without a search path. Name cannot be '/' because we don't want to prepend anything at all to filenames using it. All |