components/ksh93/patches/multi_lang_arith.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Tue, 17 Mar 2015 19:06:56 -0700
changeset 3966 cca72467a46d
parent 844 55358dcf0cb2
permissions -rw-r--r--
19078668 unixODBC version 2.3.1 needs a TPNO

diff -rupN a/src/lib/libast/sfio/sfstrtof.h b/src/lib/libast/sfio/sfstrtof.h
--- a/src/lib/libast/sfio/sfstrtof.h	2010-12-24 14:32:27.000000000 +0000
+++ b/src/lib/libast/sfio/sfstrtof.h	2011-10-25 12:21:57.749942750 +0100
@@ -414,7 +414,7 @@ S2F_function(str, end) char* str; char**
 			m = 0;
 			fraction = digits;
 		}
-		else if (c != thousand)
+		else if (c != thousand || (c == thousand && decimal == -1))
 			break;
 		else if (!(m = digits))
 		{