This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC 0/2] C++11 codecvt specializations.


>>>>> "RÃdiger" == RÃdiger Sonderfeld <ruediger@c-plusplus.de> writes:

RÃdiger> I'm also not sure how to treat wchar_t.  Is it defined for
RÃdiger> libstdc++ to be generally UCS4 (UTF-32)?  Or does libstdc++
RÃdiger> also support legacy systems where wchar_t is only UCS2?

FWIW, wchar_t isn't guaranteed to be either of these.  IIRC for gdb we
found out that there are systems that use their own special encoding, I
think Solaris.

Also, some implementations of iconv cannot convert to or from the
wchar_t encoding; though I imagine you can work around this with
appropriate template specializations to use the <wchar.h> stuff.

IMNSHO the whole area is kind of a crazy mess.  In gdb we ended up
punting on some scenarios for less-than-sane hosts and/or targets; but
gdb's needs are somewhat unusual.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]