The following two files represent two ways to convert string to double considering locale.
strtod_fast.c
uses standard C runtime functionstrtod_slow.c
uses a hand written implementation
I experiment the code on 3 compilers
- MinGW-UCRT in msys2
$ gcc -v