chiark / gitweb /
util: rework safe_atod() to be locale-independent
authorLennart Poettering <lennart@poettering.net>
Thu, 25 Apr 2013 03:04:02 +0000 (00:04 -0300)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Apr 2013 03:05:14 +0000 (00:05 -0300)
commitd6dd604b551987b411ec8930c23bd5c9c93ef864
tree6599838f561b0621fda1bfb660bef74981607367
parentdb5c0122853a9ecf1cc92e6593461932df2fa866
util: rework safe_atod() to be locale-independent

This adds some syntactic sugar with a macro RUN_WITH_LOCALE() that reset
the thread-specific locale temporarily.
TODO
src/shared/util.c
src/shared/util.h
src/test/test-util.c