Artifact
4d26ec9f452a96406df0e4c6a5dcaf018ffcc3931df250edb83f3492b9c9f77d:
Ticket change
[4d26ec9f45]
- New ticket
[869df60efcf1ed8e|869df60efc] <i>CA files loaded from a VFS fail under a non-Latin-1 locale on Tcl 9 because -encoding binary is no longer valid.</i>.
by
bandoti on
2026-11-01 10:36:27.
0000: 44 20 32 30 32 36 2d 31 31 2d 30 31 54 31 30 3a D 2026-11-01T10:
0010: 33 36 3a 32 37 2e 36 34 38 0a 4a 20 66 6f 75 6e 36:27.648.J foun
0020: 64 69 6e 20 32 2e 30 2e 31 0a 4a 20 69 63 6f 6d din 2.0.1.J icom
0030: 6d 65 6e 74 20 54 63 6c 5c 73 39 5c 73 72 65 6d ment Tcl\s9\srem
0040: 6f 76 65 64 5c 73 74 68 65 5c 73 22 62 69 6e 61 oved\sthe\s"bina
0050: 72 79 22 5c 73 65 6e 63 6f 64 69 6e 67 5c 73 61 ry"\sencoding\sa
0060: 6c 69 61 73 2c 5c 73 73 6f 5c 73 73 65 74 74 69 lias,\sso\ssetti
0070: 6e 67 5c 73 69 74 5c 73 66 61 69 6c 73 5c 73 61 ng\sit\sfails\sa
0080: 6e 64 5c 73 74 68 65 5c 73 63 68 61 6e 6e 65 6c nd\sthe\schannel
0090: 5c 72 5c 6e 6b 65 65 70 73 5c 73 74 68 65 5c 73 \r\nkeeps\sthe\s
00a0: 73 79 73 74 65 6d 5c 73 65 6e 63 6f 64 69 6e 67 system\sencoding
00b0: 2e 5c 73 41 5c 73 43 41 5c 73 66 69 6c 65 5c 73 .\sA\sCA\sfile\s
00c0: 77 69 74 68 5c 73 6e 6f 6e 2d 41 53 43 49 49 5c with\snon-ASCII\
00d0: 73 62 79 74 65 73 5c 73 74 68 65 6e 5c 73 63 6f sbytes\sthen\sco
00e0: 6d 65 73 5c 73 62 61 63 6b 5c 72 5c 6e 63 6f 72 mes\sback\r\ncor
00f0: 72 75 70 74 65 64 5c 73 75 6e 64 65 72 5c 73 61 rupted\sunder\sa
0100: 6e 79 5c 73 73 79 73 74 65 6d 5c 73 65 6e 63 6f ny\ssystem\senco
0110: 64 69 6e 67 5c 73 6f 74 68 65 72 5c 73 74 68 61 ding\sother\stha
0120: 6e 5c 73 69 73 6f 38 38 35 39 2d 31 2e 5c 73 52 n\siso8859-1.\sR
0130: 65 61 64 5c 73 69 74 5c 73 77 69 74 68 5c 72 5c ead\sit\swith\r\
0140: 6e 2d 74 72 61 6e 73 6c 61 74 69 6f 6e 5c 73 62 n-translation\sb
0150: 69 6e 61 72 79 2c 5c 73 77 68 69 63 68 5c 73 54 inary,\swhich\sT
0160: 63 6c 5c 73 38 2e 36 5c 73 61 6e 64 5c 73 39 5c cl\s8.6\sand\s9\
0170: 73 62 6f 74 68 5c 73 61 63 63 65 70 74 2c 5c 73 sboth\saccept,\s
0180: 61 6e 64 5c 73 73 74 6f 70 5c 73 69 66 5c 73 74 and\sstop\sif\st
0190: 68 61 74 5c 73 66 61 69 6c 73 2e 5c 72 5c 6e 5c hat\sfails.\r\n\
01a0: 72 5c 6e 64 69 66 66 5c 73 2d 72 75 4e 5c 73 41 r\ndiff\s-ruN\sA
01b0: 2f 67 65 6e 65 72 69 63 2f 74 6c 73 2e 63 5c 73 /generic/tls.c\s
01c0: 42 2f 67 65 6e 65 72 69 63 2f 74 6c 73 2e 63 5c B/generic/tls.c\
01d0: 72 5c 6e 2d 2d 2d 5c 73 41 2f 67 65 6e 65 72 69 r\n---\sA/generi
01e0: 63 2f 74 6c 73 2e 63 5c 72 5c 6e 2b 2b 2b 5c 73 c/tls.c\r\n+++\s
01f0: 42 2f 67 65 6e 65 72 69 63 2f 74 6c 73 2e 63 5c B/generic/tls.c\
0200: 72 5c 6e 40 40 5c 73 2d 31 39 30 38 2c 37 5c 73 r\n@@\s-1908,7\s
0210: 2b 31 39 30 38 2c 31 30 5c 73 40 40 5c 72 5c 6e +1908,10\s@@\r\n
0220: 5c 73 5c 73 5c 73 5c 73 5c 73 69 66 5c 73 28 69 \s\s\s\s\sif\s(i
0230: 6e 5c 73 3d 3d 5c 73 4e 55 4c 4c 29 5c 73 7b 5c n\s==\sNULL)\s{\
0240: 72 5c 6e 5c 73 5c 74 67 6f 74 6f 5c 73 63 6c 65 r\n\s\tgoto\scle
0250: 61 6e 75 70 3b 5c 72 5c 6e 5c 73 5c 73 5c 73 5c anup;\r\n\s\s\s\
0260: 73 5c 73 7d 5c 72 5c 6e 2d 5c 73 5c 73 5c 73 5c s\s}\r\n-\s\s\s\
0270: 73 54 63 6c 5f 53 65 74 43 68 61 6e 6e 65 6c 4f sTcl_SetChannelO
0280: 70 74 69 6f 6e 28 69 6e 74 65 72 70 2c 5c 73 69 ption(interp,\si
0290: 6e 2c 5c 73 22 2d 65 6e 63 6f 64 69 6e 67 22 2c n,\s"-encoding",
02a0: 5c 73 22 62 69 6e 61 72 79 22 29 3b 5c 72 5c 6e \s"binary");\r\n
02b0: 2b 5c 73 5c 73 5c 73 5c 73 69 66 5c 73 28 54 63 +\s\s\s\sif\s(Tc
02c0: 6c 5f 53 65 74 43 68 61 6e 6e 65 6c 4f 70 74 69 l_SetChannelOpti
02d0: 6f 6e 28 69 6e 74 65 72 70 2c 5c 73 69 6e 2c 5c on(interp,\sin,\
02e0: 73 22 2d 74 72 61 6e 73 6c 61 74 69 6f 6e 22 2c s"-translation",
02f0: 5c 73 22 62 69 6e 61 72 79 22 29 5c 73 21 3d 5c \s"binary")\s!=\
0300: 73 54 43 4c 5f 4f 4b 29 5c 73 7b 5c 72 5c 6e 2b sTCL_OK)\s{\r\n+
0310: 5c 74 54 63 6c 5f 43 6c 6f 73 65 28 69 6e 74 65 \tTcl_Close(inte
0320: 72 70 2c 5c 73 69 6e 29 3b 5c 72 5c 6e 2b 5c 74 rp,\sin);\r\n+\t
0330: 67 6f 74 6f 5c 73 63 6c 65 61 6e 75 70 3b 5c 72 goto\scleanup;\r
0340: 5c 6e 2b 5c 73 5c 73 5c 73 5c 73 7d 5c 72 5c 6e \n+\s\s\s\s}\r\n
0350: 5c 73 5c 73 5c 73 5c 73 5c 73 62 75 66 5c 73 3d \s\s\s\s\sbuf\s=
0360: 5c 73 54 63 6c 5f 4e 65 77 4f 62 6a 28 29 3b 5c \sTcl_NewObj();\
0370: 72 5c 6e 5c 73 5c 73 5c 73 5c 73 5c 73 54 63 6c r\n\s\s\s\s\sTcl
0380: 5f 49 6e 63 72 52 65 66 43 6f 75 6e 74 28 62 75 _IncrRefCount(bu
0390: 66 29 3b 0a 4a 20 6c 6f 67 69 6e 20 62 61 6e 64 f);.J login band
03a0: 6f 74 69 0a 4a 20 6d 69 6d 65 74 79 70 65 20 74 oti.J mimetype t
03b0: 65 78 74 2f 70 6c 61 69 6e 0a 4a 20 70 72 69 6f ext/plain.J prio
03c0: 72 69 74 79 20 4d 65 64 69 75 6d 0a 4a 20 70 72 rity Medium.J pr
03d0: 69 76 61 74 65 5f 63 6f 6e 74 61 63 74 20 65 36 ivate_contact e6
03e0: 61 30 37 62 65 33 30 30 31 63 32 33 36 66 33 35 a07be3001c236f35
03f0: 66 61 61 39 33 65 35 33 66 30 39 35 66 63 32 38 faa93e53f095fc28
0400: 39 64 64 62 34 34 0a 4a 20 73 65 76 65 72 69 74 9ddb44.J severit
0410: 79 20 49 6d 70 6f 72 74 61 6e 74 0a 4a 20 73 74 y Important.J st
0420: 61 74 75 73 20 4f 70 65 6e 0a 4a 20 74 69 74 6c atus Open.J titl
0430: 65 20 43 41 5c 73 66 69 6c 65 73 5c 73 6c 6f 61 e CA\sfiles\sloa
0440: 64 65 64 5c 73 66 72 6f 6d 5c 73 61 5c 73 56 46 ded\sfrom\sa\sVF
0450: 53 5c 73 66 61 69 6c 5c 73 75 6e 64 65 72 5c 73 S\sfail\sunder\s
0460: 61 5c 73 6e 6f 6e 2d 4c 61 74 69 6e 2d 31 5c 73 a\snon-Latin-1\s
0470: 6c 6f 63 61 6c 65 5c 73 6f 6e 5c 73 54 63 6c 5c locale\son\sTcl\
0480: 73 39 5c 73 62 65 63 61 75 73 65 5c 73 2d 65 6e s9\sbecause\s-en
0490: 63 6f 64 69 6e 67 5c 73 62 69 6e 61 72 79 5c 73 coding\sbinary\s
04a0: 69 73 5c 73 6e 6f 5c 73 6c 6f 6e 67 65 72 5c 73 is\sno\slonger\s
04b0: 76 61 6c 69 64 2e 0a 4a 20 74 79 70 65 20 43 6f valid..J type Co
04c0: 64 65 5c 73 44 65 66 65 63 74 0a 4b 20 38 36 39 de\sDefect.K 869
04d0: 64 66 36 30 65 66 63 66 31 65 64 38 65 38 38 35 df60efcf1ed8e885
04e0: 36 62 36 62 34 33 66 62 64 32 39 30 38 34 63 66 6b6b43fbd29084cf
04f0: 39 38 39 62 65 0a 55 20 62 61 6e 64 6f 74 69 0a 989be.U bandoti.
0500: 5a 20 39 66 31 61 31 65 35 39 64 33 33 63 34 37 Z 9f1a1e59d33c47
0510: 65 38 33 35 37 32 37 38 36 66 66 35 61 66 35 66 e83572786ff5af5f
0520: 32 32 0a 22.