Skip to content
Tcl Source Code Artifact [ff40e8134a]
Login

Artifact [ff40e8134a]

Artifact ff40e8134af8c52bd03a10c18a7924f27e3bdb9adb09553711f8447a50079441:

Ticket change [ff40e8134a] - Ticket [85ddd247b637bcb2|85ddd247b6] <i>Unable to set channel to binary encoding</i> status still Open with 3 other changes by jan.nijtmans on 2024-06-22 12:31:47.
D 2024-06-22T12:31:47.983
J icomment >\sAlso\sI\sdon't\sunderstand\show\sit\scan\sbe\scomparable\swith\siso8859-1\s(where,\sstrictly\sseen\sthe\sstandard,\sit\sdefinitely\smisses\schars\s0x00-0x1F\sand\s0x7F-0x9F,\sso\sI\sguess\sit\sneed\sto\sfail\swith\sprofile\sstrict\sor\sreplace\swith\sprofile\sreplace,\sand\seven\sif\sit\sdoesn't\sright\snow,\sit\smay\sbe\schanged\slater).\r\n\r\nAllow\sme\sto\scorrect\sthis.\sThe\sranges\s0x00-0x1F\sand\s0x7F-0x9F\sin\siso8859-1\sare\scontrol\scodes,\sdefinitely\sa\svalid\srange.\sTherefore\s"iso8859-1"\sis\sone\sof\sthe\sfew\sencodings\swith\sa\sunique\sproperty:\sReading\sa\sfile\swith\sencoding\sset\sto\s"iso8859-1",\sthere\sare\sno\sinvalid\sbytes,\sso\sit\sdoesn't\smatter\swhich\s-profile\sis\sset:\sNo\sencoding\serrors\sare\sthrown\sduring\sfile\sreading,\swhether\s-profile\sis\s"strict",\s"tcl8"\sor\s"replace",\sor\swhatever\sfuture\svalue.\sThat\sshould\snever\schange.\r\n\r\nIn\sTcl\s8.x,\s"binary"\sand\s"iso8859-1"\sare\snot\s100%\saliases:\s"binary"\shas\sadditional\soptimizations\swhen\susing\sbyte\sarrays.\sBut\sat\sscript\slevel,\sthose\stwo\sbehave\sthe\ssame.\s"binary"\shas\ssome\sshortcuts\swhich\smakes\sthings\sfaster,\swhich\s"iso8859-1"\sdoesn't\shave.\sIn\sTcl\s9.0,\s"iso8859-1"\sinherits\sthe\ssame\soptimizations,\swhich\smeans\sthat\s"binary"\snow\sis\sa\sreal\salias\sto\s"iso8859-1".\r\n\r\nHope\sthis\shelps
J login jan.nijtmans
J mimetype text/plain
K 85ddd247b637bcb25990fc55536e0ce3f9e754b2
U jan.nijtmans
Z aefb849a03931b96b335303811b50646