From: Keith S. <str...@fa...> - 2007-05-25 23:24:34
|
Sha...@si... wrote: > > Why not? Because we are already using our Graphite-specific utf16 > class all over the place, and it turns out that the number of places > where we need to convert between that and wchar_t are just a handful. > > We are not really concerned with UTF-32 at all. But wchar_t = UTF-32 on Linux! > All we want to do is be able to store and manipulate UTF-16 strings in > a few places, and std::wstring gives a convenient way to do that. > (Mostly these are strings that are to be stored in the TT name table > and that specifies UTF-16, not 8 or 32.) So it isn't really valid to treat them as UTF-32, which is what you would be doing if you used wchar_t to represent them on Linux. |