[squeak-dev] Re: VM Crashes when launched from home directory of user with Polish characters

Philippe Marschall philippe.marschall at gmail.com
Sat Jul 11 12:15:13 UTC 2009


2009/7/11 Andreas Raab <andreas.raab at gmx.de>:
> Philippe Marschall wrote:
>>
>> 2009/7/11 Andreas Raab <andreas.raab at gmx.de>:
>>>
>>> At Qwaq, we've changed our utf8ToSqueak version to assume that the input
>>> is
>>> in Latin-1 when "invalid input" is encountered. That's because we've
>>> never
>>> found a situation where one wouldn't be better off to silently accept the
>>> input (regardless of whether it's actually UTF-8, Latin-1 or whatever
>>> else)
>>> instead of blowing up. I wonder what people think about that?
>>
>> It is just a way of masking bugs. At that point the only thing you
>> know is that the input is not utf-8. Coming up with some random
>> encoding is likely to produce corrupted data. For Seaside this would
>> be horrible.
>
> Fair enough, that's why I'm asking ;-) But I'm curious, have you *ever*
> actually encountered the situation where the error about "invalid utf8
> input" has helped you?

Yes, I found a bug in Seaside which I otherwise wouldn't even have
known it existed and had no chance of tracking down. And I had a
pretty strong incentive to fix it.

Cheers
Philippe



More information about the Squeak-dev mailing list