|
Boost Users : |
Subject: Re: [Boost-users] [boost][exception] Wide-character design considerations
From: Christoph Heindl (christoph.heindl_at_[hidden])
Date: 2010-06-23 02:00:31
On Wed, Jun 23, 2010 at 12:15 AM, Emil Dotchevski
<emil_at_[hidden]> wrote:
> On Tue, Jun 22, 2010 at 10:11 AM, Rainer Deyke <rainerd_at_[hidden]> 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
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