Page MenuHomeFreeBSD

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

Authored by kib on Apr 23 2024, 5:18 PM.
Tags
None
Referenced Files
F102759626: D44916.diff
Sat, Nov 16, 6:58 PM
Unknown Object (File)
Wed, Oct 23, 5:13 PM
Unknown Object (File)
Sep 17 2024, 1:03 AM
Unknown Object (File)
Sep 16 2024, 9:03 PM
Unknown Object (File)
Sep 10 2024, 7:08 PM
Unknown Object (File)
Sep 8 2024, 2:01 AM
Unknown Object (File)
Sep 7 2024, 8:03 PM
Unknown Object (File)
Sep 7 2024, 12:24 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