Commit 754af0f
committed
BUG: Locale-independent itk::StringToDouble/Float; remove NumericLocale
itk::StringToDouble and itk::StringToFloat followed the ambient
LC_NUMERIC, so every migrated IO call site parsed "0.878906" as 0
under a decimal-comma locale.
They parse with strtod_l/strtof_l against a cached "C" locale, keeping
the itk::ExceptionObject contract; only overflow throws, as ERANGE
underflow is a valid subnormal or zero. A platform lacking newlocale
and _configthreadlocale fails to compile.
NumericLocale is removed: uselocale() cannot bind the non-_l
std::strtod on macOS 13 libc, and it shipped only in the v6.0b02
beta, so no deprecation shim is required.1 parent 22026f6 commit 754af0f
10 files changed
Lines changed: 142 additions & 420 deletions
File tree
- Modules
- Core/Common
- include
- src
- test
- IO/IOTransformDCMTK/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
47 | 51 | | |
48 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
This file was deleted.
0 commit comments