#
5e3934b1 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
usr.bin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
R
usr.bin: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
3141e51d |
| 02-Sep-2023 |
Kyle Evans <kevans@FreeBSD.org> |
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. Differential Revision: https://reviews.freebsd.org/D41693
show more ...
|
#
1d386b48 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0 |
|
#
cc7edd25 |
| 08-Nov-2020 |
Thomas Munro <tmunro@FreeBSD.org> |
Add collation version support to querylocale(3).
Provide a way to ask for an opaque version string for a locale_t, so that potential changes in sort order can be detected. Similar to ICU's ucol_get
Add collation version support to querylocale(3).
Provide a way to ask for an opaque version string for a locale_t, so that potential changes in sort order can be detected. Similar to ICU's ucol_getVersion() and Windows' GetNLSVersionEx(), this API is intended to allow databases to detect when text order-based indexes might need to be rebuilt.
The CLDR version is extracted from CLDR source data by the Makefile under tools/tools/locale, written into the machine-generated Makefile under shared/colldef, passed to localedef -V, and then written into LC_COLLATE file headers. The initial version is 34.0. tools/tools/locale was recently updated to pull down 35.0, but the output hasn't been committed under share/colldef yet, so that will provide the first observable change when it happens. Other versioning schemes are possible in future, because the format is unspecified.
Reviewed by: bapt, 0mp, kib, yuripv (albeit a long time ago) Differential Revision: https://reviews.freebsd.org/D17166
show more ...
|
Revision tags: release/12.2.0 |
|
#
e2c0e292 |
| 16-Jul-2020 |
Glen Barber <gjb@FreeBSD.org> |
MFH
Sponsored by: Rubicon Communications, LLC (netgate.com)
|
#
00c61a3b |
| 15-Jul-2020 |
Alex Richardson <arichardson@FreeBSD.org> |
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 ...
|
#
2becc9ef |
| 15-Jul-2020 |
Alex Richardson <arichardson@FreeBSD.org> |
Add missing newline and return in localedef error message
I hit those error messages when using a localedef built against headers that don't match the target system (cross-building from a Linux host
Add missing newline and return in localedef error message
I hit those error messages when using a localedef built against headers that don't match the target system (cross-building from a Linux host). This problem will be fixed in the next commit.
show more ...
|
Revision tags: release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0 |
|
#
c6879c6c |
| 23-Oct-2018 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r339015 through r339669.
|
#
4644f9be |
| 20-Oct-2018 |
Yuri Pankov <yuripv@FreeBSD.org> |
Add -b/-l options to localedef(1) to specify output endianness and use it appropriately when building share/ctypedef and share/colldef.
This makes the resulting locale data in EL->EB (amd64->powerpc
Add -b/-l options to localedef(1) to specify output endianness and use it appropriately when building share/ctypedef and share/colldef.
This makes the resulting locale data in EL->EB (amd64->powerpc64) cross build and in the native EB build match. Revert the changes done to libc in r308170 as they are no longer needed.
PR: 231965 Reviewed by: bapt, emaste, sbruno, 0mp Approved by: kib (mentor) Differential Revision: https://reviews.freebsd.org/D17603
show more ...
|
Revision tags: release/11.2.0, release/10.4.0, release/11.1.0 |
|
#
e12a957f |
| 10-Mar-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
localedef(1): Add comment markings for license.
|
#
c48c87b7 |
| 09-Mar-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
Revert r314969, r314961:
The localdef(1) changes are breaking world:
00:18:40.750 /usr/src/share/colldef/af_ZA.UTF-8.src: 2421: error: Bad file descriptor
I will fix them offline.
Reported by: lw
Revert r314969, r314961:
The localdef(1) changes are breaking world:
00:18:40.750 /usr/src/share/colldef/af_ZA.UTF-8.src: 2421: error: Bad file descriptor
I will fix them offline.
Reported by: lwshu and many others
show more ...
|
#
830784ef |
| 09-Mar-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
localedef(1): Fix for memory leaks reported by coverity.
Also some small cleanups to match better current illumos.
CID: 1338540, 1338541, 1338557, 1338566
Obtained from: illumos Discussed with: Yu
localedef(1): Fix for memory leaks reported by coverity.
Also some small cleanups to match better current illumos.
CID: 1338540, 1338541, 1338557, 1338566
Obtained from: illumos Discussed with: Yuri Pankov (@Nexenta) MFC after: 5 days
show more ...
|
Revision tags: release/11.0.1, release/11.0.0 |
|
#
93badfa1 |
| 16-Sep-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r305687 through r305890.
|
#
be4391a2 |
| 14-Sep-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
localedef(1): make better use of calloc(3) arguments.
The first argument of calloc(3) should be an ordinal type, and the second a size: split a multiplication to make better use of calloc(3) and det
localedef(1): make better use of calloc(3) arguments.
The first argument of calloc(3) should be an ordinal type, and the second a size: split a multiplication to make better use of calloc(3) and detect overflows.
Do some other re-ordering and style fixes while here.
MFC after: 3 weeks
show more ...
|
#
637cce3a |
| 03-Sep-2016 |
Enji Cooper <ngie@FreeBSD.org> |
MFhead @ r305314
|
#
8f1f370d |
| 01-Sep-2016 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r305087 through r305219.
|
#
4c22fda9 |
| 01-Sep-2016 |
Marcelo Araujo <araujo@FreeBSD.org> |
- Invert calloc(3) argument order.
MFC after: 4 weeks
|
#
fcc7baa1 |
| 01-May-2016 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
localedef(1): minor spelling fixes on comments.
No functional change.
|
#
e6d8c0e2 |
| 20-Apr-2016 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Plug memory leaks
Reported by: Coverity CID= 1338535, 1338536, 1338542, 1338569, 1338570
|
Revision tags: release/10.3.0 |
|
#
b626f5a7 |
| 04-Jan-2016 |
Glen Barber <gjb@FreeBSD.org> |
MFH r289384-r293170
Sponsored by: The FreeBSD Foundation
|
#
a5d8944a |
| 19-Nov-2015 |
Navdeep Parhar <np@FreeBSD.org> |
Catch up with head (r291075).
|
#
55b270e6 |
| 08-Nov-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Eliminate some gcc pragmas
|
#
5d21db09 |
| 07-Nov-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Fix an off by one due to bad conversion from avl(3) to tree(3) Readd calloc as it was not the issue just the messenger
Submitted by: dim Found by: Address Sanitizer
|
#
e12838d3 |
| 07-Nov-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Run memset only after having checked the return of malloc
Submitted by: pluknet
|
#
6cdc211a |
| 07-Nov-2015 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Workaround an issue on i386 to unbreak the build until the real issue is tracked down
|