diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-03-07 11:43:51 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-08 09:51:49 -0800 |
commit | f1f667c96f6c646bb48dcd4c306d13522ce0c34e (patch) | |
tree | 0e01afb45433531e8a501113978d6d3b2dfec350 /info.c | |
parent | 29be221bd877e345db8f191078796e111feb0b71 (diff) | |
download | subsurface-f1f667c96f6c646bb48dcd4c306d13522ce0c34e.tar.gz |
Warn about commas in floating point values
Localization could be causing floating point numbers to have a comma
instead of a decimal point (in a file format that is really stupid).
If we detect this we replace the comma with a decimal point instead, and
try to re-parse the number, and see if we get further.
The downside of that is that we're changing the buffer we get passed in.
Nobody cares, but still, it's kind of ugly. It's simple, though.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'info.c')
0 files changed, 0 insertions, 0 deletions