Tcl Source Code

View Ticket
Login
Ticket UUID: 991014
Title: Missing documentation of octet-char mapping
Type: Bug Created on: 2004-07-14 16:58:13
Submitter: setok Assigned to: dkf
Subsystem: 12. ByteArray Object Severity:
Priority: 5 Medium Last modified: 2004-08-04 04:18:07
Status: Closed Closed by: dkf
Resolution: Out of Date Closed on: 2004-08-03 21:18:07
Version: obsolete: 8.4.6
Description:
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.
User Comments:
dkf added on 2004-08-04 04:18:07:
Logged In: YES 
user_id=79902

Already fixed in HEAD. I can't be bothered to backport. :)