|
2013-01-16
| ||
| 18:02 | • Closed ticket [3601086fff]: Tcl_RegisterConfig for zlib should not use ASCII enc... artifact: 45fdad3717 user: dkf | |
| 10:45 | • New ticket [3601086fff]. artifact: 0fee83b02a user: twylite | |
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.