Overview
| Artifact ID: | 0d7438e116f1958e0e55063467c84cc68a1d92b0 |
|---|---|
| Ticket: | 983509ffffffffffffffffffffffffffffffffff
Tcl_RegisterConfig ignores encoding failure |
| User & Date: | dgp on 2004-07-01 16:05:03 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
Tcl_RegisterConfig() receives a "valEncoding" argument that specifies the encoding for the string values in the "configuration" table of values. Those values are copied into a dictionary, converting to UTF-encoding. Problem arises when Tcl_GetEncoding(NULL, valEncoding) returns NULL -- essentially meaning the appropriate *.enc file for that encoding could not be found. In that circumstance, T_RC ignores the encoding failure, and goes ahead an converts the config values according to whatever Tcl thinks the system encoding is at the moment. Since T_GE() failed, we know this cannot be the right thing -- we are definitely converting based on the wrong encoding -- and worse, we can't even predict what wrong thing T_RC will do instead. When the "valEncoding" cannot be found, no data should be copied over to the dictionary, since it cannot be done correctly. Whether [pkgconfig] should also not be defined, or whether it should be defined with no data, I'm not sure.
- foundin changed to: "obsolete: 8.5a2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "54. Configuration Reporting"
- title changed to: "Tcl_RegisterConfig ignores encoding failure"
- type changed to: "Bug"