[wx-dev] RFC: UTF-8 build mode for wx: wxChar

Vadim Zeitlin vadim at wxwindows.org
Mon Mar 5 05:44:04 PST 2007


On Mon, 5 Mar 2007 12:25:05 +0100 Armel Asselin <asselin.armel at wanadoo.fr> wrote:

AA> > This won't compile as wxChar will be a class. In fact just about anything
AA> > using "wxChar *" won't compile any more.
AA> will we still be able to use things such as const wxChar myconststr[] = 
AA> wxT("hello"); ?

 No, this wouldn't work neither with the original proposal to make wxChar a
class. So this proposal is probably a bad idea and it would probably be
better to keep wxChar as a simple type and, as we decided to set
wxUSE_UNICODE to 1 for the Unix/UTF-8 build, it should be just a typedef
for wchar_t. Then the above would still compile and work as expected. I'll
update the wiki page accordingly.

 Regards,
VZ





More information about the wx-dev mailing list