From: H.J. Lu Date: Thu, 12 Jun 2008 17:03:41 +0000 (+0000) Subject: re PR preprocessor/36479 (Short buffer in libcpp) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b7c73cc04cdd1d1c86fe713d6b7863d969aaf38;p=gcc.git re PR preprocessor/36479 (Short buffer in libcpp) 2008-06-12 H.J. Lu PR preprocessor/36479 * charset.c (cpp_interpret_string_notranslate): Also set narrow_cset_desc.width. From-SVN: r136714 --- diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog index 09d39629f41..3cb4e807919 100644 --- a/libcpp/ChangeLog +++ b/libcpp/ChangeLog @@ -1,3 +1,9 @@ +2008-06-12 H.J. Lu + + PR preprocessor/36479 + * charset.c (cpp_interpret_string_notranslate): Also set + narrow_cset_desc.width. + 2008-06-07 Joseph Myers * configure.ac (parisc*64*-*-*): Remove. diff --git a/libcpp/charset.c b/libcpp/charset.c index d70d05cc020..73e55eef039 100644 --- a/libcpp/charset.c +++ b/libcpp/charset.c @@ -1412,6 +1412,7 @@ cpp_interpret_string_notranslate (cpp_reader *pfile, const cpp_string *from, pfile->narrow_cset_desc.func = convert_no_conversion; pfile->narrow_cset_desc.cd = (iconv_t) -1; + pfile->narrow_cset_desc.width = CPP_OPTION (pfile, char_precision); retval = cpp_interpret_string (pfile, from, count, to, CPP_STRING);