Overview
| Artifact ID: | 265180d0e90149d58e7a88abdad6476f03fc374a |
|---|---|
| Ticket: | 3120139fffffffffffffffffffffffffffffffff
Tcl_PrintDouble not locale-safe |
| User & Date: | hobbs on 2010-11-26 23:56:14 |
Changes
- assignee changed to: "kennykb"
- cmimetype changed to: "text/plain"
- comment changed to:
If the locale is set up to not be LC_NUMERIC=C, Tcl_PrintDouble can give odd behavior. I am able to reproduce this by using a French regional locale (Control Panel -> Regional Locale and Settings), starting python with tkinter, where they have called locale.setlocale(locale.LC_ALL, '') but this could occur in other instances of Tcl embedded. When in this case, Tcl_PrintDouble can produce odd results: (arelle) 61 % expr 2-0.1 1,8999999999999999.0 (arelle) 62 % set tcl_precision 5 5 (arelle) 63 % expr 2-0.1 1,9.0 This is because the .0 tack-on is locale-ignorant.
- foundin changed to: "obsolete: 8.6b1.1"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "hobbs"
- subsystem changed to: "10. Objects"
- title changed to: "Tcl_PrintDouble not locale-safe"
- type changed to: "Bug"