NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
PR/60496 CVS commit: src/lib/libc/stdio
The following reply was made to PR bin/60496; it has been noted by GNATS.
From: "Robert Elz" <kre%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc:
Subject: PR/60496 CVS commit: src/lib/libc/stdio
Date: Tue, 13 Oct 2026 04:36:55 +0000
Module Name: src
Committed By: kre
Date: Tue Oct 13 04:36:55 UTC 2026
Modified Files:
src/lib/libc/stdio: vfwprintf.c
Log Message:
PR bin/60496 - fix printf(3) with non-single-byte decimal point & thousands sep
These fixes are relatively simple, and should be safe -- I have had them
in my source tree for ages now.
The fix for the decimal point case is taken more or less directly from
an old FreeBSD fix for the same issue.
The thousands separator case is different - our code and FreeBSD's have
diverged so much in this area that simply using their method would have
been more trouble than it was worth, so I reimplemented it differently
to better fit our code model.
There are ATF tests that go with this, which will be committed one day,
but have been waiting on strfmon(3) fixes, which are related. I decided
these code changes should wait no longer. The tests will come later.
XXX pullup -11 -10
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/stdio/vfwprintf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index