From: Peter Olcott on
On 6/2/2010 2:15 PM, Jerry Coffin wrote:
> In article<O9adnQhj079gmp3RnZ2dnUVZ_uKdnZ2d(a)giganews.com>,
> NoSpam(a)OCR4Screen.com says...
>
> [ ... ]
>
>> If I generate every possible valid CodePoint and translate to and
>> from UTF-8 and get the same value that I send in back out this will
>> prove with very high reliability that both functions are correct.
>
> It will prove only that their bugs cancel each other out. If (for
> example) you have a problem from misunderstanding the standard, it's
> often pretty easy to write code with matching bugs.
>

It turned out that this did work, because it also validated against
another UTF-8 decoder.