$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] Boost's direction regarding UTF8 -> UTF32 andUTF32 -> UTF8
From: John Maddock (boost.regex_at_[hidden])
Date: 2010-06-24 12:03:56
> Rodrigo Madera wrote:
>> There are John Maddock's iterator adapters, those of the
>> Boost.Unicode library under development that are similar to them,
>> and there is also Boost.Locale, another library under development
>> that is a frontend to ICU, that provides function to do conversions
>> (but it works with memory buffers).
>>
>>
>> I see that Maddock's adapters does the job, but does it provide the
>> reliability of ICU?
>
> They could result in undefined behaviour when given invalid UTF input at
> the end of the string.
> So not very reliable, no.
Really? That would be a bug, the intention is that they should always throw
an exception when given invalid input.
Of course a more complete solution would always be welcome....
John.