Check-in [16a3b9a8df]

Login
Bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:demo
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 16a3b9a8df32b200b1220e73edccf174a29849d0ea977f5cfe0f54f90e2b8d85
User & Date: dgp 2020-03-10 00:23:59
Context
2020-03-10
00:26
format check-in: 10ca9bc3e9 user: dgp tags: trunk
00:23
demo check-in: 16a3b9a8df user: dgp tags: trunk
2020-03-09
23:51
edit check-in: a93193cf6f user: dgp tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tip/568.md.

138
139
140
141
142
143
144
145


146








147
148
149
150
151
152
153
sequence is an original one. It did not come from a string since there is
no string.  We can then use the byte sequence as the definitive value.
This helps, but it only goes so far.
If anything causes the string representation to be generated, we lose this
supplementary test, and we are back to being unable to use the byte sequence
at all.

Bug examples.












# Specification

# Compatibility

# Scope







|
>
>

>
>
>
>
>
>
>
>







138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
sequence is an original one. It did not come from a string since there is
no string.  We can then use the byte sequence as the definitive value.
This helps, but it only goes so far.
If anything causes the string representation to be generated, we lose this
supplementary test, and we are back to being unable to use the byte sequence
at all.

This is tricky enough, callers of **Tcl_GetByteArrayFromObj** get it wrong,
even the callers within Tcl itself.  See Tcl bugs [0e92c404f1] and
[2637173] and this interactive demonstration:

>	% info patch
>	8.5.15
>	% set s \u0141
>	Ł
>	% binary scan $s c x
>	1
>	% string index $s 0
>	A

# Specification

# Compatibility

# Scope