| dc8ee270 | 02-Sep-2023 |
Kyle Evans <[email protected]> |
localedef: add newlines to error messages
These won't be added elsewhere, so add a little bit of room to make these messages a little easier to read. The existing set is a mixed bag, there are some
localedef: add newlines to error messages
These won't be added elsewhere, so add a little bit of room to make these messages a little easier to read. The existing set is a mixed bag, there are somewhere in the ballpark of 45, 46 printfs to stderr and 19 of those had newlines.
Reviewed by: yuripv Sponsored by: Klara, Inc.
(cherry picked from commit 3141e51d2e38fa7b9e6d81477dfa860d087c514d)
show more ...
|
| 00c61a3b | 15-Jul-2020 |
Alex Richardson <[email protected]> |
Allow bootstrapping localdef on non-FreeBSD systems
The current localedef simply assumes that the locale headers on build system are compatible with those on the target system which is not necessari
Allow bootstrapping localdef on non-FreeBSD systems
The current localedef simply assumes that the locale headers on build system are compatible with those on the target system which is not necessarily true. It generally works on FreeBSD (as long as we don't change the locale headers), but Linux and macOS provide completely different locale headers.
This change adds new bootstrap headers that namespace certain xlocale structures defined or used by in the headers that localdef needs. This is required since system headers *must* be able to include the "real" locale headers for printf(), etc., but we also want to access the target systems's internal locale structures.
Reviewed By: yuripv, brooks Differential Revision: https://reviews.freebsd.org/D25229
show more ...
|
| ead8d64a | 14-May-2017 |
Enji Cooper <[email protected]> |
Mark errf _Noreturn, and mark errf and warn __printflike
The _Noreturn attribute was added to placate Coverity and other static analysis tools. The __printflike attribute was added to catch issues w
Mark errf _Noreturn, and mark errf and warn __printflike
The _Noreturn attribute was added to placate Coverity and other static analysis tools. The __printflike attribute was added to catch issues with the calls related to printf(3) abuse.
- Modify the code to facilitate the __printflike attribute addition. - Convert errf calls in to_mb(..) and to_mb_string(..) to warn(..) so the calls will return instead of exiting, as the code suggests it should.
Differential Revision: D10704 MFC after: 1 month Reviewed by: pfg Sponsored by: Dell EMC Isilon
show more ...
|