eina: add locale-independent eina_convert_strtod_c function
authorYoungbok Shin <youngb.shin@samsung.com>
Wed, 22 Aug 2018 01:53:11 +0000 (01:53 +0000)
committerHermet Park <hermetpark@gmail.com>
Wed, 5 Dec 2018 05:51:19 +0000 (14:51 +0900)
commitd13b78c5b039d5cf85d37c37072e77070ff69872
treeb2d5a63a979706a4bfbd385bfa85ec77bde0b08a
parente6697faeab10e4b394c5b34a938512e0bb256539
eina: add locale-independent eina_convert_strtod_c function

strtod's behavior is changed by system locale.
http://man7.org/linux/man-pages/man3/strtod.3.html
https://en.wikipedia.org/wiki/Decimal_separator

Because of this, strtod(0.5) returns 0.0 in some locales.
When a given value string is locale-independent, strtod has to be
replaced to eina_convert_strtod_c function.
Internally, it calls strtod_l function with "C" locale.

@feature

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Reviewed-by: Vincent Torri <vincent.torri@gmail.com>
Differential Revision: https://phab.enlightenment.org/D6644
src/lib/eina/eina_convert.c
src/lib/eina/eina_convert.h
src/lib/eina/eina_main.c
src/lib/eina/eina_private.h
src/tests/eina/eina_test_convert.c