Subject: Re: [boost] [String Algo] error in ireplace_first or ireplace_all with std::wstring under gcc 3.4.2 (MingW)
From: Doug Swanson (dougswanson_at_[hidden])
Date: 2010-01-20 12:41:33
Thank you so much for your reply! I really appreciate it.
Although I remember reading about this issue at some point in the past,
I have used std::wstring under MingW-gcc for quite some time now with no
problems. If it were really 100% incompatible I would wish it would
give a compilation error! I wonder why it crashes under the 'ireplace'
algorithms but not the 'replace' ones -- especially since I remain
strictly within Unicode Plane 0 (basic 2-byte characters in UTF-16/UCS-2
which fit in a single wchar_t on Windows).
In any event, if you have any further insight here I would be interested
to hear it, but I suppose I will just have to change compilers. Thanks
Pavol Droba wrote:
> On Tue, Jan 19, 2010 at 06:34:48PM -0500, Doug Swanson wrote:
>> I apologize in advance if this is an inappropriate place to post this
>> question. I posted it to the boost-users list half a week ago and got
>> no replies, so I am trying here instead.
> I'm sorry I missed that.
>> The following code compiles and runs without error under g++ in Windows,
>> GCC 3.4.2 (MingW):
>> Does this indicate a problem with gcc (MingW) unicode support? Is there
>> an easy way to circumvent it?
>> Thank you very much for any suggestions!
> As far as I know, that answer is quite simple. Unless something have
> changed recently, mingw does not support unicode strings. I would
> suggest to swith to non-mingw version of gcc.
> Best Regards.
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk