Skip to content
Tcl Source Code Artifact [42d6fa4e16]
Login

Artifact [42d6fa4e16]

Artifact 42d6fa4e16a91606273dcc1d649242ad2eed9586:

Ticket change [42d6fa4e16] - Ticket [879a0747bee593e2|879a0747be] <i>Segfault when reading a specific file</i> status still Open with 3 other changes by ferrieux on 2015-04-20 18:12:07.
D 2015-04-20T18:12:07.592
J icomment OK,\sthe\sspecificity\sof\sthe\sfile\sis\svery\ssimple:\sit\sends\sin\smid-utf8-char\s;)\r\nSo\syou\scan\sreproduce\swith\sa\smush\ssmaller\sfile:\r\n\r\n\sset\sff\s[open\sfoo\sw]\r\n\sfconfigure\s$ff\s-translation\s\sbinary\r\n\sputs\s-nonewline\s$ff\s"hello\\xD7"\r\n\sclose\s$ff\r\n\sset\sff\s[open\sfoo\sr]\s;#\shere\swe\sinherit\s[encoding\ssystem]==utf-8\r\n\sset\sx\s[read\s$ff]\r\n\r\nSo\sI\sguess\sthat\sthe\smultibyte\smachinery\ssomehow\sgets\sinto\sthe\sway\sof\sthe\svaried\sEOF\sflags.\sThat\sshould\s(and\swill)\sbe\scured,\sthough\sthe\scircumstances\sof\sthe\sdiscovery\sare\sa\sbit\scontorted\s(you're\sbasically\sreading\sa\sbinary\sfile\swith\san\sutf-8\schannel\sencoding).
J login ferrieux
J mimetype text/plain
K 879a0747bee593e2cd0f531fa723f5f5d5595527
U ferrieux
Z 8ea2bbd5e14d5867a672de84b4b15f0c