Revision tags: release/5.2.0_cvs, release/5.2.0 |
|
#
ad4688e1 |
| 24-Dec-2003 |
Andrey A. Chernov <ache@FreeBSD.org> |
Properly advance "x/y/z" form slash-pointers in some rare cases
PR: 60539
|
#
4539e95a |
| 29-Oct-2003 |
Tim J. Robbins <tjr@FreeBSD.org> |
Remove incomplete support for running FreeBSD userland on old NetBSD kernels lacking the issetugid() and utrace() syscalls.
|
Revision tags: release/4.9.0_cvs, release/4.9.0 |
|
#
68d429c3 |
| 06-Jul-2003 |
Andrey A. Chernov <ache@FreeBSD.org> |
Reorganize wrapper around setrunelocale() to mark it as deprecated in FreeBSD 6
|
#
fca2738d |
| 26-Jun-2003 |
Alexey Zelkin <phantom@FreeBSD.org> |
Reduce code duplication by separating _PathLocle detection code into internal helper function.
|
#
93c84734 |
| 26-Jun-2003 |
Alexey Zelkin <phantom@FreeBSD.org> |
Move _PathLocale declaration to more logical place (setlocale.c)
|
#
d8d48413 |
| 26-Jun-2003 |
Alexey Zelkin <phantom@FreeBSD.org> |
Catch up with _PATH_LOCALE move from rune.h to paths.h
|
Revision tags: release/5.1.0_cvs, release/5.1.0 |
|
#
d0509082 |
| 01-May-2003 |
Jacques Vidrine <nectar@FreeBSD.org> |
Back out the `hiding' of strlcpy and strlcat. Several people vocally objected to this safety belt.
|
#
5723e501 |
| 29-Apr-2003 |
Jacques Vidrine <nectar@FreeBSD.org> |
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference technique) so that we don't wind up calling into an application's version if the application defines them.
Inspired by: qpopper's
`Hide' strlcpy and strlcat (using the namespace.h / __weak_reference technique) so that we don't wind up calling into an application's version if the application defines them.
Inspired by: qpopper's interfering and buggy version of strlcpy
show more ...
|
Revision tags: release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs, release/4.6.2_cvs, release/4.6.2 |
|
#
76692b80 |
| 08-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Rewrite locale loading procedures, so any load failure will not affect currently cached data. It allows a number of nice things, like: removing fallback code from single locale loading, remove memor
Rewrite locale loading procedures, so any load failure will not affect currently cached data. It allows a number of nice things, like: removing fallback code from single locale loading, remove memory leak when LC_CTYPE data loaded again and again, efficient cache use, not only for setlocale(locale1); setlocale(locale1), but for setlocale(locale1); setlocale("C"); setlocale(locale1) too (i.e. data file loaded only once).
show more ...
|
#
3a317a12 |
| 05-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Reject encoding > ENCODING_LEN at early stage instead of truncating it. Use ptr == NULL instead of !ptr in few places. Move saverr declaration to global section.
|
#
10bc1114 |
| 04-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Rewrite loadlocale() to eliminate LOAD_CATEGORY macro to save space.
|
#
5740f280 |
| 03-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Preserve errno in fallback code
|
#
a17eafe2 |
| 03-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
1) Use errno to indicate faulure reason. 2) Move incomplete check for / in locale name from env section to loadlocale(), add check for "." and ".." too. It allows to check any argument, not env only.
1) Use errno to indicate faulure reason. 2) Move incomplete check for / in locale name from env section to loadlocale(), add check for "." and ".." too. It allows to check any argument, not env only. 3) Redesing LOAD_CATEGORY macro to eliminate code duplication. 4) Try harder in fallback code: if old locale can't be restored, load "C" locale 5) White space formatting, long lines, etc.
show more ...
|
#
4e7b46d8 |
| 02-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Sligtly modify previous out-of-bounds fix: just break instead of return(NULL) for upward compatibility with more LC_* categories may be implemented in future.
|
#
ef1e7a26 |
| 02-Aug-2002 |
Andrey A. Chernov <ache@FreeBSD.org> |
Prevent out of bounds writting for too many slashes case. Replace strnpy + ='\0' with strlcpy
MFC after: 1 day
|
Revision tags: release/4.6.1, release/4.6.0_cvs |
|
#
333fc21e |
| 22-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Fix the style of the SCM ID's. I believe have made all of libc .c's as consistent as possible.
|
#
c05ac53b |
| 21-Mar-2002 |
David E. O'Brien <obrien@FreeBSD.org> |
Remove __P() usage.
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
a2fb0481 |
| 24-Jan-2002 |
Alexey Zelkin <phantom@FreeBSD.org> |
get __time_load_locale() prototype from include file, rather than declare own
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
efbe286b |
| 02-Mar-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
Removed duplicate $FreeBSD$.
|
#
825d095d |
| 02-Mar-2001 |
Ruslan Ermilov <ru@FreeBSD.org> |
Fix setlocale() to conform to the ISO C and POSIX standards. The below text is quoted from the latest POSIX draft:
: The values of locale categories shall be determined by a precedence : order; the
Fix setlocale() to conform to the ISO C and POSIX standards. The below text is quoted from the latest POSIX draft:
: The values of locale categories shall be determined by a precedence : order; the first condition met below determines the value: : : 1. If the LC_ALL environment variable is defined and is not null, : the value of LC_ALL shall be used. : 2. If the LC_* environment variable (LC_COLLATE, LC_CTYPE, LC_MESSAGES, : LC_MONETARY, LC_NUMERIC, LC_TIME) is defined and is not null, the : value of the environment variable shall be used to initialize the : category that corresponds to the environment variable. : 3. If the LANG environment variable is defined and is not null, the : value of the LANG environment variable shall be used. : 4. If the LANG environment variable is not set or is set to the empty : string, the implementation-defined default locale shall be used.
The conditions 1 and 2 were interchanged, i.e., LC_* were looked first, then LC_ALL, then LANG (note that LC_ALL and LANG were essentially the same, providing the default, with LC_ALL taking precedence over LANG). Now, LC_ALL and LANG serve the different purposes. LC_ALL overrides any LC_*, and LANG provides the default fallback.
Testcase:
/usr/bin/env LC_ALL=C LC_TIME=de_DE.ISO_8859-1 /bin/date
Should return date in the "C" locale format.
Inspired by: date(1) reference page in the Draft
show more ...
|
#
90423ece |
| 08-Feb-2001 |
Alexey Zelkin <phantom@FreeBSD.org> |
Make FreeBSD locale support complete: add support for rest locale categories LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they don't need anymore.
Reviewed by: silence on -i1
Make FreeBSD locale support complete: add support for rest locale categories LC_MONETARY, LC_NUMERIC and LC_MESSAGES. Remove stub functions since they don't need anymore.
Reviewed by: silence on -i18n
show more ...
|
Revision tags: release/4.2.0, release/4.1.1_cvs |
|
#
b777873e |
| 08-Sep-2000 |
Kris Kennaway <kris@FreeBSD.org> |
Disallow '/' characters in LC_* environment variables which might be used to point to a bad locale file. This is only believed to be a minor security risk - the only risk is if some program uses the
Disallow '/' characters in LC_* environment variables which might be used to point to a bad locale file. This is only believed to be a minor security risk - the only risk is if some program uses the result of a localized string as a format specifier in a vulnerable function like sprintf(). No such code is believed to exist in the FreeBSD base system, although it is possible that badly written third party code would do that.
Submitted by: imp Approved by: ache
show more ...
|
#
12b92015 |
| 04-Sep-2000 |
Warner Losh <imp@FreeBSD.org> |
The comparison against 0 should be against LC_ALL. category isn't a boolean and it is LC_ALL that's special.
Someone submitted this to me a long time ago, but I can't find the mail now.
|
Revision tags: release/4.1.0, release/3.5.0_cvs |
|
#
8b96e6c9 |
| 03-Jun-2000 |
Andrey A. Chernov <ache@FreeBSD.org> |
Megre XPG4 code into libc
|
Revision tags: release/4.0.0_cvs, release/3.4.0_cvs |
|
#
5d1706df |
| 09-Nov-1999 |
Andrey A. Chernov <ache@FreeBSD.org> |
Fix dead loop if locale contains / and not all categories specified
PR: 14742 Submitted by: peter@wahoo.com.tw
|