Artifacts Associated With Ticket 1353531fffffffffffffffffffffffffffffffff
Ticket change [c4a95beba9] (rid 111879) by billposer on 2005-11-10 23:00:42:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
In MS Windows NT 5.1 using Tcl/Tk 8.4.11 an error results when a hexadecimal value is assigned to a scale variable. The error message is: "can't assign non-numeric value to scale variable". To reproduce: scale .s -variable foo set foo 0xff If the second line is replaced by: set foo 255 no error results. I think that this is a bug in the MS Windows code since it is not only correct on my understanding of Tcl but works under Linux. Although I have thus far encountered the bug only using Tk, it appears to be a Tcl bug since whether a value is treated as numeric or not is a Tcl issue. - foundin initialized to: "obsolete: 8.4.11"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "billposer"
- subsystem initialized to: "11. Conversions from String"
- title initialized to:
Error results from assignment of hex value to scale variable
- type initialized to: "Bug"
Ticket change [2b67344d45] (rid 118736) by hobbs on 2005-11-15 03:08:47:
- priority changed to: "6"
Ticket change [a2711a351f] (rid 109894) by hobbs on 2005-11-15 03:08:48:
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=72656 This is indeed actually a Tcl "bug", though only in 8.4, not in 8.5 (which changed various numeric handling). ScaleVarProc is calling Tcl_GetDoubleFromObj on that var, and it fails for 0xff. I would think that should work, being a valid strtod value, but it fails. Passing to Kevin.
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"
Ticket change [087e0bf7ca] (rid 89568) by kennykb on 2006-09-02 00:26:49:
- closedate changed to: "2006-09-01T17:26:49"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 What we're dealing with here is C89-C9x differences in 'strtod' - prior to C9x, there was no standard hexadecimal notation for floating point, and Microsoft's 'strtod' does not accept hex. Tcl's Tcl_GetDoubleFromObj in 8.5 doesn't depend on the C library 'strtod' - we have our own scanner that also avoids a number of other issues in 'strtod' (for instance, the fact that Microsoft's does not do gradual underflow and is often off by several units in the least significant place). The changes for this are tied up in the changes for arbitrary-precision integers, and are not going to backport gracefully, so I'm going to close this as "Won't Fix" in 8.4 and fixed in 8.5.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Wont Fix"
- status changed to: "Pending"
- username: "kennykb"
Ticket change [83314fce90] (rid 117350) by sf-robot on 2006-09-16 09:20:11:
- closedate changed to: "2006-09-16T02:20:11"
- closer changed to: "sf-robot"
- icomment:
Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
- login: "sf-robot"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "sf-robot"