summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: Er macro usage cleanup.ru2000-11-221-5/+5
|
* Disallow '/' characters in LC_* environment variables which mightkris2000-09-081-1/+1
| | | | | | | | | | | | 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
* The comparison against 0 should be against LC_ALL. category isn't aimp2000-09-041-1/+1
| | | | | | | 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.
* fix commentache2000-07-071-1/+1
|
* Describe agrument range correctly, according to multibyte(3)ache2000-07-032-23/+21
| | | | Remove unneded comment
* Megre XPG4 code into libcache2000-06-0310-52/+24
|
* mdoc related fixes:phantom2000-05-121-19/+22
| | | | | | . synchronize NAME and SYNOPSIS sections . replace .Ev macros with .Dv / .Er / .Em macros as mdoc(7) specification declare
* Introduce ".Lb" macro to libc manpages.phantom2000-04-2121-0/+42
| | | | More libraries manpages updates following.
* Add comment after localesache2000-04-1212-24/+48
| | | | | | Use .Li for type Suggested-by: sheldonh
* Better wording according to multibyte(3)ache2000-04-1112-24/+96
| | | | | Better man formatting Add reference to multibyte(3)
* Back out valid argument domain change - sneak to this function by error.ache2000-03-281-4/+2
| | | | | Reword test condition better. Previous variant was true for negative characters too.
* Describe valid argument domain for 8-bit wide locales to prevent common errorache2000-03-2815-0/+30
| | | | calling ctype functions with signed char as an argument.
* There is a problem in that one cannot use ctype.h at the same time as partsobrien2000-02-082-49/+145
| | | | | | | | | | | | | | of the C++ stdlib. Our ctype.h uses symbols of the form _<X> to denote the various character classes. Our ctype.h also extends the usual ctype.h offering by adding the "_T" (special) class. Problem is parts of the STL also use the symbol "_T" as its parameterized type. These two uses are incompatible. Thus change the form of the symbols used in ctype to something that fixes the current problem and is less likely to cause conflicts in the future. Requested by: Tomoaki NISHIYAMA <tomoaki@biol.s.u-tokyo.ac.jp> Ok'ed by: JKH
* Simplify sytem call renaming. Instead of _foo() <-- _libc_foo <-- foo(),jasone2000-01-271-6/+6
| | | | | | | | | | | | | | | | | just use _foo() <-- foo(). In the case of a libpthread that doesn't do call conversion (such as linuxthreads and our upcoming libpthread), this is adequate. In the case of libc_r, we still need three names, which are now _thread_sys_foo() <-- _foo() <-- foo(). Convert all internal libc usage of: aio_suspend(), close(), fsync(), msync(), nanosleep(), open(), fcntl(), read(), and write() to _foo() instead of foo(). Remove all internal libc usage of: creat(), pause(), sleep(), system(), tcdrain(), wait(), and waitpid(). Make thread cancellation fully POSIX-compliant. Suggested by: deischen
* Although it should be obvious that the 3-digit numeric values of thesheldonh2000-01-1912-12/+23
| | | | | characters shown are octal, state this explicitly for the easily misled.
* Add three-tier symbol naming in support of POSIX thread cancellationjasone2000-01-121-6/+6
| | | | | | points. For library functions, the pattern is __sleep() <-- _libc_sleep() <-- sleep(). The arrows represent weak aliases. For system calls, the pattern is _read() <-- _libc_read() <-- read().
* Add .Xrefs to tolower.3 and toupper.3, respectively.hoek1999-12-282-0/+2
|
* Back up following macros by functions: ishexnumber, isideogram, isnumber,phantom1999-12-171-7/+58
| | | | | | isphonogram, isrune, isspecial. Fix ordering. Reviewed by: bde
* Correct "standard compilance" notesphantom1999-12-141-2/+8
| | | | Reminded by: bde
* Fix dead loop if locale contains / and not all categories specifiedache1999-11-091-1/+3
| | | | | PR: 14742 Submitted by: peter@wahoo.com.tw
* mdoc(7)'fyphantom1999-09-231-5/+6
|
* __collate_substitute() do something non-trivial only for German. For everyonedt1999-09-122-3/+15
| | | | | | | | else, it is equivalent to strdup(). So, we will check if the substitution tables are trivial at the load time, and possibly save 2 calls to __collate_substitute() in strcoll(). Still, __collate_substitute() should not exist.
* Reduce time of __collate_substitute() from O(strlen(s)^2) to O(strlen(s)).dt1999-09-121-8/+11
| | | | | | | | Other minor optimizations. I got ~30% speedup in strcoll() for 50 char strings, ~40% speedup for 100 char strings, and unmeasurable speedup for 1M strings. Collates are still terribly slow. To make them reasonable fast, __collate_substitute() should be killed.
* $Id$ -> $FreeBSD$peter1999-08-2831-32/+32
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-1225-0/+25
| | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Correct troff sequence for backslashes in manual page.jkoshy1999-06-212-2/+2
| | | | | PR: docs/12322 Submitted by: Marc Ramirez <mrami@gbtb.com>
* PR: 10918foxfair1999-05-071-2/+2
| | | | | | Submitted by: Yung-Jen Hung <winard@u3717a.dorm.ccu.edu.tw> Reviewed by: bearscorp.bbs@bbs.life.nthu.edu.tw _BIG5_sgetrune() in libc doesn't work well, this commit will fix it.
* Document ishexnumber, isideogram, isnumber, isphonogram, isrune,ghelmer1999-04-291-2/+20
| | | | | | and isspecial. PR: docs/9854
* More egcs warning fixes:imp1999-04-251-1/+1
| | | | | | | | | | o use braces to avoid potentially ambiguous else o don't default to type int (and also remove a useless register modifier). o Use parens around assignment values used as truth values. o Remove unused function. Reviewed by: obrien and chuckr
* Fix a macro name typo that made a word disappear.jdp1999-04-031-1/+1
|
* Fixed tab lossage in previous commit.bde1999-02-251-2/+2
|
* remove ctype.c - unused and confusingache1999-02-232-74/+2
|
* fix unsigned overflowache1998-10-251-5/+7
| | | | PR: 8437
* Replace memory leaking instances of realloc with non-leaking reallocf.imp1998-09-161-2/+2
| | | | | | | | | | | In some cases replace if (a == null) a = malloc(x); else a = realloc(a, x); with simple reallocf(a, x). Per ANSI-C, this is guaranteed to be the same thing. I've been running these on my system here w/o ill effects for some time. However, the CTM-express is at part 6 of 34 for the CAM changes, so I've not been able to do a build world with the CAM in the tree with these changes. Shouldn't impact anything, but...
* Sort cross references.wosch1998-08-311-1/+1
|
* Add missing #include of <sys.types.h>phk1998-08-151-0/+1
|
* I have added the support for BIG5 encoding into libc/libxpg4/mklocale.phk1998-08-153-5/+127
| | | | | | | | | | | the diff is attached below. This is done on the 3.0 source-tree. I have test this on 2.2-stable before, but I don't have a 3.0 machine right now. This patch is mainly to make libc support BIG5 encoding, thus add zh_TW.BIG5 locale to 3.0. Submitted by: Chen Hsiung Chan <frankch@waru.life.nthu.edu.tw>
* Add reference to catopen(3)ache1998-04-301-1/+4
|
* Basic support for LC_MESSAGESache1998-04-292-12/+13
|
* Change MACHINE references to MACHINE_ARCH.jb1998-02-201-2/+2
|
* Add #ifndef __NETBSD_SYSCALLS around calls to issetugid() whichjb1998-01-152-4/+12
| | | | do not exist in NetBSD 1.3.
* Include string.h for memcpy function prototype.jb1998-01-141-0/+1
|
* Expanded cross references.alex1998-01-023-0/+5
|
* The terminating character in strings is `NUL', not `NULL'.wosch1997-12-281-1/+1
|
* Correct description of which runes are encoded as two bytes.steve1997-11-052-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 4555 Submitted by: Dmitrij Tejblum <tejblum@arc.hq.cti.ru> [0x0400 - 0xffff] [bbbbbbbb.bbbbbbbb] -> 1110bbbb, 10bbbbbb, 10bbbbbb .Ed .Pp If more than a single representation of a value exists (for example, 0x00; 0xC0 0x80; 0xE0 0x80 0x80) the shortest representation is always used (but the longer ones will be correctly decoded). .Pp The final three encodings provided by X-Open: .Bd -literal [00000000.000bbbbb.bbbbbbbb.bbbbbbbb] -> 11110bbb, 10bbbbbb, 10bbbbbb, 10bbbbbb [000000bb.bbbbbbbb.bbbbbbbb.bbbbbbbb] -> 111110bb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb [0bbbbbbb.bbbbbbbb.bbbbbbbb.bbbbbbbb] -> 1111110b, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb, 10bbbbbb .Ed .Pp which provides for the entire proposed ISO-10646 31 bit standard are currently not implemented. .Sh "SEE ALSO" .Xr mklocale 1 , .Xr setlocale 3 @ 1.4 log @Don't use hardcoded *roff font change requests. Do it via mdoc macros instead. @ text @d37 1 a37 1 .Dd "June 4, 1993" @ 1.3 log @Very minor mdoc cleanup. @ text @d44 2 a45 1 \fBENCODING "UTF2"\fP @ 1.2 log @Another round of various man page cleanups. @ text @d65 1 a65 1 .sp d81 1 a81 1 .sp @ 1.2.2.1 log @YAMFC: Commit all of the -current changes that apply to 2.2. These fall into several categories: - Cosmetic/mdoc changes. They don't really afect the output at all, but having them in 2.2 will make it easier to diff the man pages later when looking for real changes. - Update some man pages to reflect the current 2.2 header files. - Sort xrefs. - A few typo fixes. - And a few changes that actualy added text to the man page that should be reflected in 2.2. - Add some missing MLINKS. Requested by: bde @ text @d44 1 a44 2 .Nm ENCODING .Qq UTF2 d65 1 a65 1 .Pp d81 1 a81 1 .Pp @ 1.2.2.2 log @MFC: Just the locale fixes (small doc tweaks for the most part) and the new strptime(3) call. Having added something, does this require a version bump? Haven't we bumped once already? There are a *LOT* of additional 3.0 changes to be merged but I'm not entirely comfortable with some of them so I'll take the conservative (read: cowardly :) way out and just merge this much. @ text @d37 1 a37 1 .Dd June 4, 1993 @ 1.1 log @Initial revision @ text @d41 1 a41 1 .Nm UTF2 @ 1.1.1.1 log @BSD 4.4 Lite Lib Sources @ text @@ 1.1.1.1.6.1 log @Phase 2 of merge - also fix things broken in phase 1. Watch out for falling rock until phase 3 is over! libc completely merged except for phkmalloc & rfork (don't know if David wants that). Some include files in sys/ had to be updated in order to bring in libc. @ text @d41 1 a41 1 .Nm utf2 @ 1.1.1.1.6.2 log @This 3rd mega-commit should hopefully bring us back to where we were. I can get it to `make world' succesfully, anyway! @ text @d41 1 a41 1 .Nm UTF2 @
* Sorted lists.bde1997-10-211-10/+13
|
* Removed the subdirectory paths from the definitions of MAN[1-9]. Theybde1997-10-151-9/+6
| | | | | were a workaround for limitations in bsd.man.mk that were fixed about 2 years ago.
* Use revived __maskrune for digittointache1997-09-271-2/+2
| | | | Minor formatting
* Move it under XPG4 defineache1997-09-251-0/+2
|
* Move MSKanji under XPG4 defineache1997-09-251-8/+8
|
OpenPOWER on IntegriCloud