[nem-en] Language support and BOM

Alexey Borzenkov snaury at gmail.com
Tue Jan 30 20:21:31 CET 2007


On 1/30/07, vc <vc at rsdn.ru> wrote:
>
> Well...
>
> But, we remain old problem - we can't warn user if it use "non utf file".
>
> I suggest add compiler option - ReportErrorOfBomNotPresent.


Why another option? If we are to use System.Text.StreamReader with
DecoderExceptionFallback, then compiler will see DecoderFallbackException
when it encounters invalid sequences during parsing. Then it's only a matter
of correct cathing that exception and displaying proper error message. What
exactly you don't like there?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/pipermail/devel-en/attachments/20070130/15620f26/attachment-0001.html


More information about the devel-en mailing list