summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* __maskrune --> __istypeache1997-09-251-1/+1
|
* Submitted by: Sin'ichiro MIYATANI / Phase One, Inc <siu@phaseone.co.jp>julian1997-09-244-2/+118
| | | | | Basic support for the Shift JIS encoding of japanese. (and one tiny typo fixed in a comment)
* Remove collate_range_cmp, was left for temp. backward compatibilityache1997-08-031-10/+1
|
* Fixed quoting of backslash.bde1997-07-131-1/+1
|
* Show the real revision date and not the date that thissteve1997-06-237-7/+7
| | | | manpage is being viewed.
* Completely remove #ifdefed out 8859-1 extension, I found it breakache1997-05-141-39/+1
| | | | POSIX, C locale definition, see LC_CTYPE pre-defined table there
* #ifdef out C locale extension to 8859-1 encoding, it now stays to ASCIIache1997-05-131-1/+4
| | | | | | | | | | | | | | | back as designed in *BSD Also it not violates current standards but 1) No other Unixes have this feature 2) It broke Kerberos5 (isprint) and God knows what else (not all vendors will agree to treat FreeBSD as special case for support since (1)) 2) Give false localization sense (programs mimic to be 8859-1 localized) which prevents true localization.
* Changed all paths to be relative to src/lib instead of src/lib/libcjb1997-05-031-2/+6
| | | | | | | | | | so that all these makefiles can be used to build libc_r too. Added .if ${LIB} == "c" tests to restrict man page builds to libc to avoid needlessly building them with libc_r too. Split libc Makefile into Makefile and Makefile.inc to allow the libc_r Makefile to include Makefile.inc too.
* Don't use literal semicolons in .Fn macro invocations.bde1997-04-1313-13/+13
|
* Restore PATH_LOCALE functionality using issetugid() call nowache1997-04-075-8/+32
|
* FIxed arg types (mostly missing consts) in synopsis.bde1997-03-191-1/+1
|
* Revert $FreeBSD$ to $Id$peter1997-02-225-6/+6
|
* Move _PathLocale to data-only file, so setrunelocale() not pick upache1997-02-092-2/+2
| | | | | | whole setlocale.c module now. Should go into 2.2
* Do Andrey's homework :) before merging this into 2.2:joerg1997-02-082-1/+6
| | | | | . add idempotency #ifdef . avoid sloppy common-style external declaration.
* Comment out PATH_LOCALE referenceache1997-02-062-2/+2
| | | | Should go into 2.2
* Use symbolic constants instead of hardcoded digitsache1997-02-064-32/+51
| | | | | | | | Add range check for setrunelocale since it can be called directly. Remove _startup_setlocale compatibility function Should go into 2.2
* Fix yet another setlocale() bug.pst1997-02-061-1/+1
| | | | Submitted by: Wojtek Pilorz <wpilorz@celebris.bdk.lublin.pl>
* Update the comment why range checking not neededache1997-02-053-4/+4
| | | | | | | Fix setrunelocale fail if called directly without prior setlocale call Should go in 2.2
* Killed getenv of PATH_LOCALE per Andrey's suggestion. It was intendeddg1997-02-051-11/+2
| | | | | for debugging locale stuff, but was rarely if ever used...and of course just bit a big chunk out of our collective hind-ends.
* Add yet one comment saying that range checking already doneache1997-02-031-0/+1
| | | | to stop people "fixing" it by snprintf
* Don't use hardcoded *roff font change requests. Do itmpp1997-01-317-18/+56
| | | | via mdoc macros instead.
* Very minor mdoc cleanup.mpp1997-01-3116-30/+30
|
* Sort cross references.wosch1997-01-206-9/+9
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-145-6/+6
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* 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.
OpenPOWER on IntegriCloud