Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/printf Revert previous, it was based upon a misreadi...
details: https://anonhg.NetBSD.org/src/rev/413aaea8b912
branches: trunk
changeset: 996298:413aaea8b912
user: kre <kre%NetBSD.org@localhost>
date: Sun Jan 27 12:03:09 2019 +0000
description:
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.
diffstat:
usr.bin/printf/printf.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 643a347f63c8 -r 413aaea8b912 usr.bin/printf/printf.c
--- a/usr.bin/printf/printf.c Sun Jan 27 11:41:52 2019 +0000
+++ b/usr.bin/printf/printf.c Sun Jan 27 12:03:09 2019 +0000
@@ -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 @@
#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 @@
return (double) *((*gargv++)+1);
errno = 0;
- val = strtod_l(*gargv, &ep, LC_C_LOCALE);
+ val = strtod(*gargv, &ep);
check_conversion(*gargv++, ep);
return val;
}
Home |
Main Index |
Thread Index |
Old Index