| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
in STANDARDS section. Document functions which are extensions to the standard.
|
|
|
|
| |
1003.1-2001 in STANDARDS section.
|
|
|
|
|
|
|
|
| |
towlower() and towupper() required by ISO C90 Amd. 1.
iswascii(), iswhexnumber(), iswideogram(), iswnumber(), iswphonogram(),
iswrune() and iswspecial() have also been implemented for consistency
with the BSD extensions in <ctype.h>.
|
|
|
|
|
| |
Use ptr == NULL instead of !ptr in few places.
Move saverr declaration to global section.
|
|
|
|
|
|
| |
(tow*) functions from NetBSD, unmodified except for the addition of $FreeBSD$.
Obtained from: NetBSD
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Remove incomplete checks for 'name' and 'PatchLocale', they must be
already checked at this point.
|
|
|
|
| |
MAN per section).
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Return EFTYPE instead of EINVAL for wrong locale file format.
Whitespaces.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
return(NULL) for upward compatibility with more LC_* categories may be
implemented in future.
|
|
|
|
|
|
| |
Replace strnpy + ='\0' with strlcpy
MFC after: 1 day
|
|
|
|
|
|
|
|
|
|
| |
Satoshi NIIMI-san kindly explained that EUC does not limit the byte length to
any arbitrary number.
We now set the limit to the maximum octet length of the codeset and it is
locale-specific.
Submitted by: Yong-Jhen Hong <winard@ms11.url.com.tw>
|
|
|
|
|
| |
PR: docs/26451
Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
|
|
|
|
| |
PR: 37018
|
|
|
|
|
| |
PR: 28552
Submitted by: NIIMI Satoshi <sa2c@and.or.jp>
|
|
|
|
|
|
| |
Also, make an internal _getprogname() that is used only inside
libc. For libc, getprogname(3) is a weak symbol in case a
function of the same name is defined in userland.
|
|
|
|
| |
I believe have made all of libc .c's as consistent as possible.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
deprecated in favor of the POSIX-defined lowercase variants.
o Change all occurrences of NTOHL() and associated marcros in the
source tree to use the lowercase function variants.
o Add missing license bits to sparc64's <machine/endian.h>.
Approved by: jake
o Clean up <machine/endian.h> files.
o Remove unused __uint16_swap_uint32() from i386's <machine/endian.h>.
o Remove prototypes for non-existent bswapXX() functions.
o Include <machine/endian.h> in <arpa/inet.h> to define the
POSIX-required ntohl() family of functions.
o Do similar things to expose the ntohl() family in libstand, <netinet/in.h>,
and <sys/param.h>.
o Prepend underscores to the ntohl() family to help deal with
complexities associated with having MD (asm and inline) versions, and
having to prevent exposure of these functions in other headers that
happen to make use of endian-specific defines.
o Create weak aliases to the canonical function name to help deal with
third-party software forgetting to include an appropriate header.
o Remove some now unneeded pollution from <sys/types.h>.
o Add missing <arpa/inet.h> includes in userland.
Tested on: alpha, i386
Reviewed by: bde, jake, tmm
|
|
|
|
| |
Do this conversion on locale load stage instead.
|
|
|
|
| |
own
|
|
|
|
|
|
| |
standard document
Pointed by: "Jacques A. Vidrine" <n@nectar.cc>
|
|
|
|
| |
(ctype(3)).
|
|
|
|
|
|
| |
is correct but less than useful. There is some uncertainty about whether
isblank() is in C99, but it is certainly not in C90. It just conforms
to C89 because it is a conforming extension.
|
|
|
|
| |
Removed assertion that isblank() is in C99 here too.
|
|
|
|
| |
Fixed unsorting of SRCS in rev.1.18.
|