summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vfprintf.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2008-10-21 17:51:17 +0000
committermartynas <martynas@openbsd.org>2008-10-21 17:51:17 +0000
commita164159eadac7ee6878cacaad2e28323664b7b1a (patch)
treeda722eea0b50abe1a78640e7bdfd2b404f14a423 /lib/libc/stdio/vfprintf.c
parentdo not listen on tentative (during DAD), duplicated (after DAD) or (diff)
downloadwireguard-openbsd-a164159eadac7ee6878cacaad2e28323664b7b1a.tar.xz
wireguard-openbsd-a164159eadac7ee6878cacaad2e28323664b7b1a.zip
use decimal point from locale. ok millert@
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r--lib/libc/stdio/vfprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index 59af7eb7a22..466d5384a5f 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfprintf.c,v 1.52 2008/09/07 20:36:08 martynas Exp $ */
+/* $OpenBSD: vfprintf.c,v 1.53 2008/10/21 17:51:17 martynas Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -879,13 +879,13 @@ number: if ((dprec = prec) >= 0)
PRINTANDPAD(cp, dtoaend, lead, zeroes);
cp += lead;
if (prec || flags & ALT)
- PRINT(".", 1);
+ PRINT(decimal_point, 1);
}
PRINTANDPAD(cp, dtoaend, prec, zeroes);
} else { /* %[eE] or sufficiently long %[gG] */
if (prec > 1 || flags & ALT) {
buf[0] = *cp++;
- buf[1] = '.';
+ buf[1] = *decimal_point;
PRINT(buf, 2);
PRINT(cp, ndig-1);
PAD(prec - ndig, zeroes);