This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

multibyte support and narrow strings


It seems wrong to take an narrow string literal that uses multibyte
encoding and try to cram each input character into a single byte in
the object file.  The standard even says,

  In a narrow string literal, a universal-character-name may map to
  more than one char element due to multibyte encoding.

The simplest way to handle this when the source and execution
character sets are the same would seem to be passing the multibyte
encoding through untouched.  Thoughts?

Jason

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]