On Wed, Sep 13, 2006 at 04:23:36PM +0200, Georg Baum wrote: > Angus Leeming wrote: > > > Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > >> We have of course one other options: > >> > >> On linux: char_type is wchar_t > >> docstring is wstring > >> > >> On windows: char_type is uint32_t > >> docstring is basic_string<uint32_t> > >> > >> Perhaps that is the easiest solution after all? > > > > Works only for MSVC. Will still fail for MinGW and Cygwin. > > Exactly. If we decide to not support MinGW and Cygwin anymore then this is > indeed the easiest solution. IIRC I already sent a patch that does exactly > this some time ago. If we decide to support MinGW and Cygwin, then it will > not work, since they don't have any wchar_t, not even a 16 bit one.
I am not sure what you mean but the following #include <stdio.h> #include <wchar.h> int main() { printf("size: %d\n", sizeof(wchar_t)); return 0; } prints "size: 2" on both MinGW and Cygwin. -- Enrico