Boost logo

Boost :

Subject: Re: [boost] [General] Always treat std::strings as UTF-8
From: Artyom (artyomtnk_at_[hidden])
Date: 2011-01-15 08:26:02


>

> boost::filesystem::fstream uses a wide string under Windows afaik (assuming
> it can detect that you're using an STL implementation which has wide-string
> overloads -- aka Dinkumware). However there's still the problem that if
> you're using MinGW (or some other non-MSVC toolset that doesn't use a recent
> Dinkumware STL implementation) then it will drop back to a narrow string and
> we're back where we started again...

Yes I know this, that is why boost::fstream written
over C stdio.h should be provided.

I had written once small "nowide" library that does this and calls
_wfopen under Windows (available in MinGW) and I actually use it in
CppCMS's booster library which makes my life much simpler

Artyom

      


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk