| 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 ...
|
| 1bb0ddf9 | 09-Mar-2017 |
Pedro F. Giffuni <[email protected]> |
localedef(1): Fix small coverity issues.
- Operands don't affect result (CONSTANT_EXPRESSION_RESULT) - Buffer not null terminated (BUFFER_SIZE_WARNING)
CID: 1338557, 1338565
Obtained from: illumos
localedef(1): Fix small coverity issues.
- Operands don't affect result (CONSTANT_EXPRESSION_RESULT) - Buffer not null terminated (BUFFER_SIZE_WARNING)
CID: 1338557, 1338565
Obtained from: illumos MFC after: 5 days
show more ...
|
| bbf9a456 | 06-Oct-2016 |
Baptiste Daroussin <[email protected]> |
localedef: Improve cc_list parsing
original commit log: ===== I had originally suspected the parsing of ctype definition files as being the source of the ctype flag mis-definitions, but it wasn't.
localedef: Improve cc_list parsing
original commit log: ===== I had originally suspected the parsing of ctype definition files as being the source of the ctype flag mis-definitions, but it wasn't. In the process, I simplified the cc_list parsing so I'm committing the no-impact improvement separately. It removes some parsing redundancies and won't parse partial range definitions anymore. ====
Submitted by: marino Obtained from: Dragonfly MFC after: 1 month
show more ...
|