On Wed, Sep 13, 2006 at 04:32:47PM +0200, Abdelrazak Younes wrote: > 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. > > But I've seen ports of Gcc-4 to mingw and cygwin. That would solve the > problem, wouldn't it? Enrico, would you comment on that?
The official current gcc version on cygwin is 3.4.4. I have never tried building gcc on cygwin (the last gcc I built by myself was 2.8.x on solaris) but I have seen some people stating they have compiled 4.1.0 using 3.4.4. I am not of much help here, but if something works on linux using gcc4 it should also work on a cygwin gcc4 (apart sizeof(wchar_t), of course). -- Enrico