
On Wed, Jun 23, 2010 at 12:15 AM, Emil Dotchevski
On Tue, Jun 22, 2010 at 10:11 AM, Rainer Deyke
wrote: On 6/22/2010 02:33, Christoph Heindl wrote:
Hello,
How do you guys deal with boost.exceptions and wide-character strings?
All my std::strings are utf-8. That fixes this problem:
Probably not all strings, if you want to do string manipulations std::wstring is a better fit. Filenames, yes, I keep as utf-8 std::strings too.
ok, that's a variant to consider. off-topic: that would mean i have to decode those strings before passing them to boost::filesystem, right?
I still think that Christoph is raising a valid issue. Even if you keep the file names as utf-8 strings, diagnostic_information doesn't know about it. I think it is possible for boost::errinfo_file_name to deal with the situation better, it is on my todo list.
what do you have in mind? Currently the only idea I have is to treat all utf-8 characters < 128 as ascii characters and escape the rest. Best regards, Christoph