OSDN Git Service

2008-06-12 H.J. Lu <hongjiu.lu@intel.com>
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jun 2008 17:03:41 +0000 (17:03 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Jun 2008 17:03:41 +0000 (17:03 +0000)
PR preprocessor/36479
* charset.c (cpp_interpret_string_notranslate): Also set
narrow_cset_desc.width.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136714 138bc75d-0d04-0410-961f-82ee72b054a4

libcpp/ChangeLog
libcpp/charset.c

index 09d3962..3cb4e80 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 d70d05c..73e55ee 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);