SAX/C++: UTF-8 v UTF-16

Steinar Bang sb at metis.no
Mon Dec 6 14:38:20 GMT 1999


>>>>> Lars Marius Garshol <larsga at garshol.priv.no>:

> * James Clark
>> 
>> Unfortunately wchar_t isn't guaranteed to be UTF-16.  Some platforms
>> make it 32-bits.

> gcc 2.95 on Linux does, at least. I don't know what it does on other
> platforms.

Ugh... that would be one of my target compilers eventually(*). :-/

I saw some discussion on the libstc++-v3 mailing list about having to
make wchar_t 32 bit, to make it able to hold UCS-4.  I didn't know it
ended up being the case.


(*) I'm currently using 1.2-pre2, because it was the first one that
    worked for me since egcs-1.0.3 and I probably won't upgrade again
    until gcc is reasonably stable.  And I'm currently not using
    wstring and wchar_t

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list