diff options
author | Yuri Pankov <yuripv@yuripv.net> | 2018-05-17 10:42:14 -0400 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-05-17 10:43:27 -0400 |
commit | f39927996d932d886093624a919a94b0daf5cb83 (patch) | |
tree | 73f606c8071b8e77801dc98226258ca06672849e | |
parent | 9ee48d48fcedfa1c02bcd16d6abbbfd28b9726c1 (diff) | |
download | illumos-joyent-f39927996d932d886093624a919a94b0daf5cb83.tar.gz |
9511 printf family isn't aware of multibyte decimal point characters (fix regression)
-rw-r--r-- | usr/src/lib/libc/port/print/doprnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libc/port/print/doprnt.c b/usr/src/lib/libc/port/print/doprnt.c index b6e8ceef0a..e8cfaad6de 100644 --- a/usr/src/lib/libc/port/print/doprnt.c +++ b/usr/src/lib/libc/port/print/doprnt.c @@ -1574,7 +1574,7 @@ _ndoprnt(const char *format, va_list in_args, FILE *iop, int prflag) p = insert_thousands_sep(buf, p); /* Put in a decimal point if needed */ - if (prec != 0 || (flagword & FSHARP)) + if (prec > 0 || (flagword & FSHARP)) p = insert_decimal_point(p); /* Digits (if any) after the decimal point */ |