Page MenuHomeFreeBSD

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

Authored by kib on Apr 23 2024, 5:18 PM.
Tags
None
Referenced Files
F115201711: D44916.diff
Mon, Apr 21, 9:34 AM
Unknown Object (File)
Thu, Apr 17, 8:33 PM
Unknown Object (File)
Wed, Apr 16, 1:42 PM
Unknown Object (File)
Tue, Apr 15, 4:32 AM
Unknown Object (File)
Wed, Mar 26, 11:15 PM
Unknown Object (File)
Feb 15 2025, 9:38 AM
Unknown Object (File)
Feb 5 2025, 1:17 AM
Unknown Object (File)
Jan 27 2025, 11:14 AM
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