[wx-dev] wxCSConv::cMB2WX
Robert Roebling
robert at roebling.de
Sun Mar 2 01:32:48 PST 2008
Vaclav Slavik wrote:
> Robert Roebling wrote:
>
> > I wonder what the output is of wxCSConv::cMB2WX() when
> > run in UTF8 mode?
>
> Same as before in Unicode build, wxWCharBuffer (as is clear from its
> definition in strconv.h).
I only looked at the docs and wasn't sure if they were still
correct in that area. I wondered if cMB2WX() is not a misnomer
today as it doesn't convert to "wx" but to "wc". The point is
that sometimes, wxCSConv might actually be using UTF8 and if
the source string needs to be put into a wxString it will
now get converted to wchar_t and then back to UTF8 (in UTF8
mode).
Apart from that, if we remove the ANSI build entirely, the
docs for whatever cMB2WX would have returned in ANSI can be
removed, I think. I don't know if the code (or wxWidgets as
a whole) still compiles in ANSI mode, in which case we might
keep the docs as they are. The next question is: Do we plan
to remove the ANSI build entirely?
Robert
More information about the wx-dev
mailing list