Page MenuHomeFreeBSD

Stop using strerror() in printf*() guts
ClosedPublic

Authored by kib on Apr 23 2024, 5:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 9 2025, 11:50 PM
Unknown Object (File)
Nov 5 2025, 3:14 AM
Unknown Object (File)
Nov 5 2025, 12:25 AM
Unknown Object (File)
Nov 4 2025, 10:01 PM
Unknown Object (File)
Nov 4 2025, 9:24 PM
Unknown Object (File)
Nov 3 2025, 4:31 AM
Unknown Object (File)
Oct 31 2025, 4:59 PM
Unknown Object (File)
Oct 12 2025, 9:56 PM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.Apr 23 2024, 5:18 PM

I'd thought we didn't need to propogate the locale, since both strerror and strerror_r use the same locale()... but I'd forgotten printf can have a different one, so I proposed something different in the bug.
We could share buf and errormsg, but maybe it's not worth the hassle.

This revision is now accepted and ready to land.Apr 23 2024, 5:32 PM