Overview
| Artifact ID: | 12825e89831ed4c05695852e9c58c6be56d99afc63304c22de36579cccc72ded |
|---|---|
| Ticket: | d15847d7b61a0686ec60463987c2f9f77482fee0
lsort and the null character |
| User & Date: | pooryorick on 2020-08-01 07:59:22 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
The output of the following script is <code>127 0 128</code> when it should be <code>0 127 128</code>: <code><verbatim> set list [list \x80 \x7f \x00] set sorted {} foreach item [lsort $list] { scan $item %c ord lappend sorted $ord } puts $sorted </verbatim></code> Furthermore, with the <code>-dictionary</code> argument, the output is <code>0 127 128</code>, as expected: <code><verbatim> set list [list \x80 \x7f \x00] set sorted {} foreach item [lsort -dictionary $list] { scan $item %c ord lappend sorted $ord } puts $sorted </verbatim></code> - foundin changed to: "core-8-6-branch"
- is_private changed to: "0"
- login: "pooryorick"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "pooryorick"
- subsystem changed to: "17. Commands I-L"
- title changed to: "lsort and the null character"
- type changed to: "Bug"