On 2025-12-18 13:53, enh via tz wrote:
On Thu, Dec 18, 2025 at 3:04 PM Florian Weimer <fweimer@redhat.com> wrote:
* enh via tz:
does anyone implement the ungetc() part or am i misunderstanding what that's trying to say?
Not sure if this is what you mean. We changed glibc fairly recently:
commit 377e9733b50ce41e496c467ddcc112f73c88f3bd Author: Joseph Myers <josmyers@redhat.com> Date: Tue Jan 28 19:38:27 2025 +0000
ah, i should probably have said "Debian GLIBC 2.41-12+gl0" rather than just "glibc".
the test in that sha does look very like my test, even down to the input starting with "#include" :-)
presumably yet another case where posix just copied down what solaris did rather than checking what everyone was actually doing.
From function notes, POSIX originally copied SVID, based on what AT&T and Sun Unix groups found in common between their implementations, as they mostly refer to existing standards, and may lessen or drop requirements if enough other implementations' documentation is available and differ.
Fix fflush after ungetc on input file (bug 5994)
Tested for x86_64.
-- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut -- Antoine de Saint-Exupéry