Skip to content
Tcl Source Code Artifact [b9be1eaabc]
Login

Artifact [b9be1eaabc]

Artifact b9be1eaabce8645208e296335cff41410258598401f4acaf97042149d2ad93ec:

Ticket change [b9be1eaabc] - New ticket [85ddd247b637bcb2|85ddd247b6] <i>Unable to set channel to binary encoding</i>. by cjmcdonald on 2024-06-19 16:56:40.
D 2024-06-19T16:56:40.738
J assignee nobody
J closer nobody
J cmimetype text/x-markdown
J comment Tcl\s9.0b2\r\n\r\nWindows\s10\s22H2\r\n\r\nDefault\sbuild\sof\sTcl\s9.0b2:\r\n\r\n<pre>\r\n\s\s\s\snmake\s-f\smakefile.vc\sINSTALLDIR=C:\\Tcl9\r\n\s\s\s\snmake\s-f\smakefile.vc\sINSTALLDIR=C:\\Tcl9\sinstall\r\n</pre>\r\n\r\nTrying\sto\schange\sa\sfile\schannel\sto\sbinary,\sit\sgets\sset\sto\siso8859-1:\r\n\r\n<pre>\r\nC:\\Tcl9\\bin\\tclsh90.exe\r\n%\sencoding\ssystem\r\nutf-8\r\n%\sset\sf\s[open\stemp.txt\sw]\r\nfile268360e3060\r\n%\sfconfigure\s$f\r\n-blocking\s1\s-buffering\sfull\s-buffersize\s4096\s-encoding\sutf-8\s-eofchar\s{}\s-profile\sstrict\s-translation\scrlf\r\n%\sfconfigure\s$f\s-encoding\sbinary\r\n%\sfconfigure\s$f\s-encoding\r\niso8859-1\r\n%\sclose\s$f\r\n%\r\n%\sset\sf\s[open\stemp.txt\swb]\r\nfile268360e3060\r\n%\sfconfigure\s$f\s-encoding\r\niso8859-1\r\n%\sclose\s$f\r\n%\r\n</pre>\r\n\r\nI\sencountered\sthe\ssame\sissue\swith\sa\stcludp\schannel\sin\sTcl\s9.0b2.\r\n\r\nA\spossibly\srelated\sissue\soccurs\srunning\sthe\ssame\sbuild\son\sa\sWindows\sServer\s2019\ssystem.\s\sIt\snow\sincorrectly\sreports\sthe\ssystem\sencoding\sas\siso8859-1.\r\n\r\n<pre>\r\nC:\\Tcl9\\bin\\tclsh90.exe\r\n%\sencoding\ssystem\r\niso8859-1\r\n</pre>\r\n\r\nWith\sTcl\s8.*\sit\swas\scorrectly\sreported\sas\scp1252.\s\sI'd\sguess\sthat\sWindows\sServer\s2019\smay\snot\ssupport\sthe\s`<activeCodePage>`\sUTF-8\ssetting\swhich\shas\sbeen\sadded\sto\sthe\stclsh\smanifest.
J foundin 9.0b2
J is_private 0
J login cjmcdonald
J priority 5\sMedium
J private_contact 15d05e35c6efd35720375a1ce4b01373f7d13297
J resolution None
J severity Important
J status Open
J submitter cjmcdonald
J subsystem 25.\sChannel\sSystem
J title Unable\sto\sset\schannel\sto\sbinary\sencoding
J type Bug
K 85ddd247b637bcb25990fc55536e0ce3f9e754b2
U cjmcdonald
Z 1447a504cb0720ea0bf591658306929d