Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Tcl_RegisterConfig for zlib should not use ASCII encoding

Closed / Fixed3601086fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-01-16 10:45:20
In TclZlibInit (tclZlib.c) the package config for zlib is built and registered:
    cfg[0].key = "zlibVersion";
    cfg[0].value = zlibVersion();
    cfg[1].key = NULL;
    Tcl_RegisterConfig(interp, "zlib", cfg, "ascii");

The encoding should be set to 'iso8859-1' rather than 'ascii'.  'iso8859-1' is a built-in encoding whereas 'ascii' must be loaded.  The two encodings are identical for characters in the range \x20 - \x7E (see http://en.wikipedia.org/wiki/ISO/IEC_8859-1), which covers this use case.
dkfplain2013-01-16 18:02:07
allow_comments - 1
Log in (anonymous is fine) to add a comment.