Page MenuHomeFreeBSD

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

Authored by kib on Tue, Apr 23, 5:18 PM.
Tags
None
Referenced Files
F83998344: D44916.diff
Sat, May 18, 12:47 AM
Unknown Object (File)
Tue, Apr 30, 12:48 PM
Unknown Object (File)
Mon, Apr 29, 11:38 PM
Unknown Object (File)
Sat, Apr 27, 8:14 AM
Unknown Object (File)
Fri, Apr 26, 5:21 PM
Unknown Object (File)
Fri, Apr 26, 2:56 AM
Unknown Object (File)
Fri, Apr 26, 2:56 AM
Unknown Object (File)
Fri, Apr 26, 2:56 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kib requested review of this revision.Tue, Apr 23, 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.Tue, Apr 23, 5:32 PM