Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Missing documentation of octet-char mapping

Closed / Out of Date991014ffffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-07-14 16:58:13
The manpages do not clearly state that when reading in
binary data, f.ex. with [fconfigure -encoding binary]
the string representation is such that each character
in the string is the same as an octet in the original
data. The same applies to [binary format] and anything
else that generates binary data.

The reason this is not self-evident is that equally one
might assume that when binary data is accessed as a
string, the above representation is not made and
instead two octets could form a single character of
unicode.

I am not quite sure what the correct place to document
this behaviour is, as it applies to all binary data (or
anything that is internally a ByteArray object). Still,
this relationship should be made clear.
dkfplain2004-08-04 04:18:07
Logged In: YES 
user_id=79902

Already fixed in HEAD. I can't be bothered to backport. :)
Log in (anonymous is fine) to add a comment.