Boost logo

Boost Users :

Subject: [Boost-users] Open a filename with a wstring or wchar_t *
From: Timothy Madden (terminatorul_at_[hidden])
Date: 2010-08-02 07:46:40


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 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