1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

Fix for libast sfstrtof() (Solaris patch 075-multi_lang_arith)

This change is pulled from here:
https://github.com/oracle/solaris-userland/blob/master/components/ksh93/patches/075-multi_lang_arith.patch

It appears to be a fix for converting a string to a floating point
value in certain locales. Unfortunately there is no publicly
available documentation on what it does exactly. We just have to
assume the Solaris people knew what they were doing.
This commit is contained in:
Martijn Dekker 2021-01-08 05:30:29 +00:00
parent c69bf543cf
commit 54c4e94205

View file

@ -414,7 +414,7 @@ S2F_function(str, end) char* str; char** end;
m = 0;
fraction = digits;
}
else if (c != thousand)
else if (c != thousand || (c == thousand && decimal == -1))
break;
else if (!(m = digits))
{