summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* Add a couple of additional xrefs.mpp1997-01-111-1/+3
|
* Add comment that range checking is already done at upper levelache1996-12-282-3/+7
| | | | | | Kill snprintf left in collate.c from previous backout Should go in 2.2
* Back out rev 1.5: the overflow condition is already handled elsewhere.joerg1996-12-221-2/+4
|
* Fix yet another buffer overflow. :-(joerg1996-12-162-9/+5
| | | | | | | | 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.
* Add rcsid[]ache1996-11-271-13/+19
| | | | | | 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)
* Add Idache1996-11-261-35/+43
| | | | Optimize/improve recently added locale restoration on failure
* PATH_LOCALE: use this non-standard env variable first time only, i.e.ache1996-11-263-72/+98
| | | | | | | | | | | | | | | | 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()
* Rename collate_range_cmp to __collate_range_cmp for internal usageache1996-10-312-5/+14
| | | | | | | 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 debug outputache1996-10-232-5/+14
| | | | Simplify collate_range_cmp for ASCII-compatible collate we have now
* Save half of space in LC_COLLATE and remove unneded code.ache1996-10-152-35/+10
| | | | | | This change is not compatible with previous variant, however proper error code returned in both cases. Colldef changes will follows.
* Add comment explaining what function doesache1996-09-171-3/+11
| | | | Cover strcoll return 0 case too
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-3/+4
| | | | | | 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.
* Correctly use .Fn instead of .Nm to reference function namesmpp1996-08-221-1/+2
| | | | | | | | 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.
* Add Idache1996-08-201-3/+5
| | | | Move comment up to place
* Add isblank attr to non-break spaceache1996-08-201-1/+4
| | | | Add comment describing how upper half of table made
* Remove isgraph attr from non-break spaceache1996-08-201-1/+1
|
* Add Idache1996-08-141-0/+2
|
* simplify/speedup/extendache1996-08-131-18/+22
|
* Remove old version hooksache1996-08-122-12/+2
|
* There is so many places where range comparation (using collate)ache1996-08-121-9/+20
| | | | | needed (much more than I think initially), so I forced to add new user-visible non-standard function to libc.
* Add internal function __collcmp once instead of adding it staticallyache1996-08-123-2/+65
| | | | to many places in the libc
* Remove some hardcode *roff font change escape codes frommpp1996-08-062-4/+4
| | | | | | | | | | 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>
* Fixed longstanding namespace convolution involving rune_t vs wchar_t.bde1996-05-013-9/+5
| | | | | | | | | | | 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.
* Don't include <sys/types.h> when it isn't used.bde1996-04-191-2/+0
| | | | | This commit covers most of the ANSI library functions. Many others only need <sys/types.h> because they use u_xxx.
* Fix error in wcstombs: byte count not countedache1996-04-181-3/+4
| | | | | Remove unneded casts in sgetrune/sputrune Submitted by: wcstombs fix by Mihoko Tanaka <m_tonaka@pa.yokogawa.co.jp>
* Added missing section numbers to a bunch of .Xr macros, ormpp1996-03-271-1/+1
| | | | | converted them into .Fn macros where appropriate. Also fixed up some minor formatting problems.
* Remove half-dancing solution for signed chars to help findingache1996-03-252-20/+6
| | | | POSIXly-incorrect programs.
* Remove half-dancing solution for signed chars to help findingache1996-03-251-10/+2
| | | | POSIXly-incorrect programs.
* Correct a bunch of man page cross references and generallympp1996-02-112-2/+2
| | | | | | try and silence "manck". ncurses, rpc, and some of the gnu stuff are still a big mess, however.
* Another round of various man page cleanups.mpp1996-02-092-2/+2
|
* recording cvs-1.6 file deathpeter1995-12-305-412/+0
|
* Oops. I seem to have over-corrected with my last commit. It should begpalmer1995-12-291-2/+2
| | | | right this time
* Correct what seem to me to be some mistakes in the references andgpalmer1995-12-282-6/+6
| | | | standards sections. Also add a missing `,' to each file.
* Move more stuff out to XPG4ache1995-11-034-0/+32
| | | | Handle negative chars inside runetype/tolower/toupper
* Treat empty encoding as "C" encodingache1995-10-231-1/+1
|
* Optimize PathLocale handling.ache1995-10-231-7/+15
| | | | | Handle C/POSIX/"" properly. Don't reset collate to C when it is unnecessary
* Use fake (empty) startup_setlocale for XPG4ache1995-10-231-3/+3
|
* Reduce static binaries bloat by splitting out normally unusedache1995-10-233-8/+45
| | | | setinvalidrune()
* Migrate from XPG4 to XPG3 (libxpg4 will be added soon)ache1995-10-239-56/+444
| | | | | Remove big part of my startup_setlocale hack. Add missing manpage links.
* As above.phk1995-10-223-3/+2
| | | | Oh I also put in a couple of compile-time warnings for the crypt stuff.
* Propogate default table to restricted 8859-1 templateache1995-10-191-0/+32
| | | | | (only control/graph/punct/print tags used) Based on: kaleb@x.org and Bruce suggestions
* Forget to close fileache1995-08-112-0/+2
| | | | Submitted by: SANETO Takanori sanewo@strg.sony.co.jp
* Fix cut&paste error: LC_COLLATE should be LC_TIMEache1995-08-051-3/+3
|
* Add time locale loadingache1995-08-051-0/+8
|
* Implement locale-sensitive strftime () from ADO (heavily modifiedwollman1995-08-042-2/+14
| | | | | | | | | | 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>
* Remove trailing whitespace.rgrimes1995-05-302-3/+3
|
* Reviewed by: ache and wollman (long ago)bde1995-04-072-52/+11
| | | | | | | | | | | | | | | | | | 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.
* Update info about LC_COLLATE implementationache1995-03-261-3/+1
|
* Minor optimizationache1995-02-181-7/+4
|
* Don't pick _warn module nowache1995-02-171-10/+34
|
OpenPOWER on IntegriCloud