This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
multibyte support and narrow strings
- To: brolley at cse dot cygnus dot com
- Subject: multibyte support and narrow strings
- From: Jason Merrill <jason at redhat dot com>
- Date: Thu, 24 Aug 2000 20:00:53 -0700
- CC: gcc at gcc dot gnu dot org, jason at cse dot cygnus dot com
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