Boost logo

Boost :

From: Boris Kolpackov (boris_at_[hidden])
Date: 2007-02-27 14:50:21


Sebastian Redl <sebastian.redl_at_[hidden]> writes:

> Actually, it is whatever the compiler decides it should be. On Linux
> systems with a default GCC, yes, that's UTF-32, but under Windows it's
> typically UCS-2 or UTF-16 (with or without surrogate support, that is).

Actually, it is what *you* put into it. Compiler decides what the size
of wchar_t should be. As long as your code points fit into that size, you
will be fine. For example you can store UTF-16 characters in 4-byte wchar_t.

-boris

-- 
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk