From: Harald O. <har...@el...> - 2024-06-25 11:50:50
|
Am 25.06.2024 um 13:30 schrieb Jan Nijtmans: > This is a CFV warning for TIP #699: > Eliminate encoding alias "binary"; provide introspection for binary channels > <https://core.tcl-lang.org/tips/doc/trunk/tip/699.md> > > It's meant for Tcl 9.0+ only (except for the "chan isbinary" > command). > > If you think this is a bad idea, speak up now. If not, > I'll start the vote in a few days. > > Regards, > Jan Nijtmans Dear Jan, thank you for the great work, I appreciate. Personally, I like the visual beauty of "-encoding binary". But with current TCL9 (e.g. when the TIP is not accepted), this is a shortcut for "-encoding iso8859-1". This is tipped and documented: % fconfigure $c -encoding binary % fconfigure $c -binary iso8859-1 The empty string alias is not documented but behaves the same. TCL9 is the moment to also leave thinks you like for the big picture, to make it cleaner. That is why -encoding binary and "-encoding iso8859-1" was unified and now throw an error message on Unicode characters above 0xff. I think, this step is unpleasant but helpful to get the big picture. We have two shortcuts for "fconfigure $c -encoding iso8859-1 -eofchar {} -translation lf" : - fconfigure $c -translation binary - open $f b Both have the same effect to set the 3 values at once. This is also inconsistent but it is ok. The binary mode consists of those 3 settings. That is binary mode. That's all. So I am in favor of this TIP. Thank you and take care, Harald |