Module Name:    src
Committed By:   kre
Date:           Sun Jan 27 12:03:09 UTC 2019

Modified Files:
        src/usr.bin/printf: printf.c

Log Message:
Revert previous, it was based upon a misreading of the POSIX
spec.   POSIX requires "as if by calling strtod()" which we
did already ... by calling strtod().   Go back to doing that.


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/usr.bin/printf/printf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/printf/printf.c
diff -u src/usr.bin/printf/printf.c:1.47 src/usr.bin/printf/printf.c:1.48
--- src/usr.bin/printf/printf.c:1.47	Sat Jan 26 15:22:54 2019
+++ src/usr.bin/printf/printf.c	Sun Jan 27 12:03:09 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: printf.c,v 1.47 2019/01/26 15:22:54 kre Exp $	*/
+/*	$NetBSD: printf.c,v 1.48 2019/01/27 12:03:09 kre Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 19
 #if 0
 static char sccsid[] = "@(#)printf.c	8.2 (Berkeley) 3/22/95";
 #else
-__RCSID("$NetBSD: printf.c,v 1.47 2019/01/26 15:22:54 kre Exp $");
+__RCSID("$NetBSD: printf.c,v 1.48 2019/01/27 12:03:09 kre Exp $");
 #endif
 #endif /* not lint */
 
@@ -682,7 +682,7 @@ getdouble(void)
 		return (double) *((*gargv++)+1);
 
 	errno = 0;
-	val = strtod_l(*gargv, &ep, LC_C_LOCALE);
+	val = strtod(*gargv, &ep);
 	check_conversion(*gargv++, ep);
 	return val;
 }

Reply via email to