Boost logo

Boost Users :

Subject: Re: [Boost-users] Open a filename with a wstring or wchar_t *
From: Bo Jensen (jensen.bo_at_[hidden])
Date: 2010-08-02 07:52:09


I use :

 typedef boost::filesystem::wpath SlmWPath;
 typedef boost::filesystem::wfstream SlmWfstream;
 typedef boost::filesystem::wofstream SlmWOfstream;
 typedef boost::filesystem::wifstream SlmWIfstream;

then you can use wchar, I have not tested with non asci filenames though.

On Mon, Aug 2, 2010 at 11:46 AM, Timothy Madden <terminatorul_at_[hidden]> wrote:
> Hello
>
> Surprisingly enough, C++ file-based streams can be opened with a char *
> string (for the filename) only, while modern computer systems have Unicode
> filenames. I see boost::iostreams::basic_file also gets constructed from a
> char * only.
>
> My project name has Korean characters, and I work on a Latin1 Windows
> system, and on my system the narrow-characters set simply does not contain
> Korean characters.
>
> Is there a (good) way to open a file with a wstring in boost ?
>
> Thank you,
> Timothy Madden
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net