re PR preprocessor/36479 (Short buffer in libcpp)
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 12 Jun 2008 17:03:41 +0000 (17:03 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 12 Jun 2008 17:03:41 +0000 (10:03 -0700)
2008-06-12  H.J. Lu  <hongjiu.lu@intel.com>

PR preprocessor/36479
* charset.c (cpp_interpret_string_notranslate): Also set
narrow_cset_desc.width.

From-SVN: r136714

libcpp/ChangeLog
libcpp/charset.c

index 09d39629f41ac4181e30a6c44a8394647f83afd2..3cb4e807919349bfa96d4aedd792465e6556f069 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR preprocessor/36479
+       * charset.c (cpp_interpret_string_notranslate): Also set
+       narrow_cset_desc.width.
+
 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
 
        * configure.ac (parisc*64*-*-*): Remove.
index d70d05cc0205435247e25ca66dd7bf46c79e163f..73e55eef03941a66ee303d18b99c7ca35af58860 100644 (file)
@@ -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);