Artifacts Associated With Ticket 3216010
Ticket change [b0f616059d] (rid 98065) by petasis on 2011-03-16 11:05:13:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
lsort -integer fails when trying to sort a list of wide integers (i.e. a list with timestamps, like clock milliseconds returns). I see for example in Tcl_LsortObjCmd(), in file tclCmdIL.c, line 3911 (may have changed I haven't updated to fossil): } else if (sortMode == SORTMODE_INTEGER) { long a; if (TclGetLongFromObj(sortInfo.interp, indexPtr, &a) != TCL_OK) { sortInfo.resultCode = TCL_ERROR; goto done1; } elementArray[i].index.intValue = a; I think that Tcl_GetWideIntFromObj() should be called if Tcl_GetLongFromObj() fails, before returning an error to the caller... - foundin initialized to: "None"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "petasis"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "lsort -integer fails with wide integers"
- type initialized to: "RFE"
Ticket change [0ed72e1b17] (rid 94688) by dgp on 2011-03-16 22:28:38:
- icomment:
data_type - 360894 This is not a bug. It's preservation of compatible output from [lsort -integer] across minor releases. That may be an unwise choice, but changing it is a feature request.
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "17. Commands I-L"
- username: "dgp"
- icomment:
Ticket change [5f6e2d7129] (rid 115822) by dgp on 2011-03-18 04:20:12:
- icomment:
See http://core.tcl.tk/tcl/info/cf82eb92c8 for a checkin implementing the requested functionality as [lsort -entier].
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [3c9384c19e] (rid 120938) by dgp on 2011-03-18 04:21:08:
- icomment:
Very much un(der)tested at this point, BTW.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e1b5ef7019] (rid 207176) by jan.nijtmans on 2022-11-22 22:43:38:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2459906.4469747"
- closer changed to: "jan.nijtmans"
- comment changed to:
lsort -integer fails when trying to sort a list of wide integers (i.e. a list with timestamps, like clock milliseconds returns). I see for example in Tcl_LsortObjCmd(), in file tclCmdIL.c, line 3911 (may have changed I haven't updated to fossil): } else if (sortMode == SORTMODE_INTEGER) { long a; if (TclGetLongFromObj(sortInfo.interp, indexPtr, &a) != TCL_OK) { sortInfo.resultCode = TCL_ERROR; goto done1; } elementArray[i].index.intValue = a; I think that Tcl_GetWideIntFromObj() should be called if Tcl_GetLongFromObj() fails, before returning an error to the caller... - icomment: "Fixed [f70fa16889ed757d|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- severity changed to: "Minor"
- status changed to: "Closed"
Ticket change [fc4a3c694f] (rid 207177) by jan.nijtmans on 2022-11-22 22:45:30:
- closedate changed to: "2459906.4482738"
- icomment: "Dup of [47d66253c9]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"