Re: wide chars with 16 BITS_PER_UNIT

2007-04-02 Thread Thomas Gill
On Fri, Mar 30, 2007 at 09:52:22AM -0700, Richard Henderson wrote: > I think the problem is that we've not told libcpp what the correct > narrow character set is. I suggest adding something like > > if (BITS_PER_UNIT >= 32) > cpp_opts->narrow_charset = BYTES_BIG_ENDIAN ? "UTF-32BE" : "UTF-

Re: wide chars with 16 BITS_PER_UNIT

2007-03-30 Thread Richard Henderson
On Fri, Mar 30, 2007 at 01:59:12PM +0100, Thomas Gill wrote: > > Hi there, > > I maintain a GCC port for a small 16 bit processor called XAP2+. I'm > having problems with strings of wide characters. > > I have the following defines, among others: > > #define BITS_PER_UNIT 16 > ... > #

wide chars with 16 BITS_PER_UNIT

2007-03-30 Thread Thomas Gill
Hi there, I maintain a GCC port for a small 16 bit processor called XAP2+. I'm having problems with strings of wide characters. I have the following defines, among others: #define BITS_PER_UNIT 16 ... #define WCHAR_TYPE "int" #define WCHAR_TYPE_SIZE 16 So, I'm ex