Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0fee83b02a1d9b0c4b6ac2222397239ebeaf6e48
Ticket: 3601086fffffffffffffffffffffffffffffffff
Tcl_RegisterConfig for zlib should not use ASCII encoding
User & Date: twylite on 2013-01-16 10:45:20
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    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.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "twylite"
  10. subsystem changed to: "57. zlib"
  11. title changed to:
    Tcl_RegisterConfig for zlib should not use ASCII encoding
    
  12. type changed to: "Bug"