
On Wed, Jun 23, 2010 at 9:25 AM, John Dlugosz
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.
IMO, the exception class should take UTF-16 as wstring or L literals and "deal with it" internally if need be. As long as it produces the original value again when queried, the internal format does not matter.
The Boost Exception framework itself doesn't set a limitation on what
you can stuff in exceptions. You can use something like:
typedef boost::error_info