| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Kill snprintf left in collate.c from previous backout
Should go in 2.2
|
| |
|
|
|
|
|
|
|
|
| |
Vulnerable: all programs that use setlocale(LC_COLLATE),
setlocale(LC_CTYPE), or setlocale(LC_ALL). The only setuid/setgid
binary i've found for this is w(1).
Should go into 2.2.
|
|
|
|
|
|
| |
Since locale reading code not resistent against stack overflowing or
similar intruder attacks, don't allow PATH_LOCALE env variable action
for s-bit programs (non-standard locale path setting)
|
|
|
|
| |
Optimize/improve recently added locale restoration on failure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
strdup() it to prevent unsetenv() or setenv() effects. Check its length to
not allow user to overflow internal locale buffer. Move PATH_LOCALE
handling code into one place.
POSIX: make better stub for LC_MONETARY & LC_NUMERIC, now it check
locale directory existance instead of refusing all non-C non-POSIX
locales. POSIX treats empty locale env variable as unset variable
while our old code treats it as "C" locale, fix it. Implement previous locale
restoring, if locale setting fails. Old code assumes success if some
of LC_ALL subset is successed even other fails, POSIX treats it as
failure with previous locale restoring, fix it.
Remove unneccessary length checking in currentlocale()
|
|
|
|
|
|
|
| |
inside libc. Add collate_range_cmp as alias to __collate_range_cmp
for temp. backward compatibility.
collate_range_cmp will be replaced with direct code for each
external program for compatibility with the rest of world
|
|
|
|
| |
Simplify collate_range_cmp for ASCII-compatible collate we have now
|
|
|
|
|
|
| |
This change is not compatible with previous variant, however proper
error code returned in both cases.
Colldef changes will follows.
|
|
|
|
| |
Cover strcoll return 0 case too
|
|
|
|
|
|
| |
for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2
or __pure2 where it wasn't already done, except in math.h where use
of __pure was mostly wrong.
|
|
|
|
|
|
|
|
| |
in a bunch of man pages.
Use the correct .Bx (BSD UNIX) or .At (AT&T UNIX) macros
instead of explicitly specifying the version in the text
in a bunch of man pages.
|
|
|
|
| |
Move comment up to place
|
|
|
|
| |
Add comment describing how upper half of table made
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
needed (much more than I think initially), so I forced to add
new user-visible non-standard function to libc.
|
|
|
|
| |
to many places in the libc
|
|
|
|
|
|
|
|
|
|
| |
this man page to prevent half of it from coming out with underlines.
This man page needs to be gone over to fully convert it to mdoc format.
This closes PR#1440.
Submitted by: Jens Schweikhardt <schweikhardt@rus.uni-stuttgart.de>
|
|
|
|
|
|
|
|
|
|
|
| |
If _ANSI_SOURCE or _POSIX_SOURCE is defined, then <ctype.h> had to
be included before <stddef.h> or <stdlib.h> to get rune_t declared.
Now rune_t is declared perfectly bogusly in all cases when <ctype.h>
is included.
This change breaks similar (but more convoluted) convolutions in the
stddef.h in gcc distributions. Ports of gcc should avoid using the
gcc headers.
|
|
|
|
|
| |
This commit covers most of the ANSI library functions. Many others only
need <sys/types.h> because they use u_xxx.
|
|
|
|
|
| |
Remove unneded casts in sgetrune/sputrune
Submitted by: wcstombs fix by Mihoko Tanaka <m_tonaka@pa.yokogawa.co.jp>
|
|
|
|
|
| |
converted them into .Fn macros where appropriate. Also fixed
up some minor formatting problems.
|
|
|
|
| |
POSIXly-incorrect programs.
|
|
|
|
| |
POSIXly-incorrect programs.
|
|
|
|
|
|
| |
try and silence "manck".
ncurses, rpc, and some of the gnu stuff are still a big mess, however.
|
| |
|
| |
|
|
|
|
| |
right this time
|
|
|
|
| |
standards sections. Also add a missing `,' to each file.
|
|
|
|
| |
Handle negative chars inside runetype/tolower/toupper
|
| |
|
|
|
|
|
| |
Handle C/POSIX/"" properly.
Don't reset collate to C when it is unnecessary
|
| |
|
|
|
|
| |
setinvalidrune()
|
|
|
|
|
| |
Remove big part of my startup_setlocale hack.
Add missing manpage links.
|
|
|
|
| |
Oh I also put in a couple of compile-time warnings for the crypt stuff.
|
|
|
|
|
| |
(only control/graph/punct/print tags used)
Based on: kaleb@x.org and Bruce suggestions
|
|
|
|
| |
Submitted by: SANETO Takanori sanewo@strg.sony.co.jp
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
by me). This probably loses for multibyte characters, but I have no
way of telling. I'll let ache decide whether to add this support to
startup_setlocale. Note that for this to make any sense at all, the
symlinks in /usr/share/locale must go. (For the moment, this doesn't
make any difference since there are no locales supplied.)
Obtained from: Arthur David Olson <ado@elsie.nci.nih.gov>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
isctype.c:
o The tolower() and toupper() functions duplicated too much code
and were out of date (surprise). This didn't matter because
it was difficult to call them.
o Change formatting to be more like that in <ctype.h> (with
extra parentheses as in the macros). Perhaps this file should
be machine generated or everything should be handled like
__tolower() so that no code is repeated.
nomacros.c:
o Instead of looking at _USE_CTYPE_INLINE_ to see what <ctype.h>
has done, set _EXTERNALIZE_CTYPE_INLINES_ to tell <ctype.h>
what to do, so that we don't have anything left to do. Note
that code is now generated even if inlines are used by default.
This allows users to switch to non-inline versions.
|
| |
|
| |
|
| |
|