diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-10-21 17:51:18 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2008-10-21 17:51:18 +0000 |
commit | 48c6e090b2322696fe4305e5f0686936ab2fe5ad (patch) | |
tree | 8a8c74caeb7c51238bcaace5a0bda08c2720e9d2 /lib/libc | |
parent | e515147e7a8a7d5cd8b8272a9226b796fd84ca36 (diff) |
use decimal point from locale. ok millert@
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 |
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); |