|
From: <apn...@ya...> - 2023-02-01 11:45:21
|
A comment on Christian's -erroron mask suggestion.
-erroron would define what constitutes an error. But it does not say what
should be done in case of that error which I think is the more important
issue to address.
So for example, if \xC0 is encountered in [encoding convertfrom utf-8],
should that be mapped to U+00C0, mapped to U+FFFD, raise an exception etc. I
think that is more important than distinguishing between error cases like
surrogate in utf-8 vs \xC0 in utf-8.
So while it may have some use, it doesn't really address the current
discussion.
/Ashok
> -----Original Message-----
> From: Christian Gollwitzer <aur...@gm...>
> When we talk about renaming these options, how about an "error mask"?
> I.e. a way to specify on what errors the encoding shold stop. e.g.
>
> -erroron {surrogates invalid wrongcode} ....
>
> where these names should be the ones defined by the UNicode consortium.
> Then everyone can pick their own failuremode. The same codes should then
> also be reported when the error occurs.
>
> Which one of these shall become the default, is then purely bikeshedding.
>
>
> Christian
>
>
> _______________________________________________
> Tcl-Core mailing list
> Tcl...@li...
> https://lists.sourceforge.net/lists/listinfo/tcl-core
|