summaryrefslogtreecommitdiffstats
path: root/lib/libc/nls
Commit message (Collapse)AuthorAgeFilesLines
* MFC r304703, r304755ache2016-08-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | 1) _locale.h LC_*_MASK bit shifting order was partially broken from the initial commit time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the right order. The order here should match XLC_* from "xlocale_private.h" which, in turn, match LC_* publicly visible order from <locale.h> which determines how locale components are stored in the structure. LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale() and equivalent shift loop in the newlocale(), so mapped to some wrong components (excluding two mentioned above). Formally the fix is ABI breakage, but old code using those masks never works properly in any case. Only newlocale() and querylocale() are affected. 2) msgcat.c Use current locale (f.e. set by thread). It was global locale always previously. PR: 211743
* MFC r278530:bdrewery2015-04-031-0/+1
| | | | | | | | When catopen(3) returns an error, it caches the result of that error from r202992. The refcount on the cache entry is not initialized, so any attempt to clean the cache will skip over this item since it likely has a >0 value. This change is currently a NOP.
* POSIX 1003.1-2008: add ENOTRECOVERABLE, EOWNERDEAD errnos.pluknet2013-05-041-0/+4
|
* Add entry for errno ECAPMODE.pluknet2013-05-041-0/+2
| | | | MFC after: 3 days
* libc: Fix typo in French translation.jilles2013-04-141-1/+1
| | | | | | PR: kern/177704 Submitted by: martymac MFC after: 1 week
* Add derived versions for common Simplified Chinese encodings.delphij2012-12-283-0/+596
| | | | MFC after: 2 weeks
* Add zh_CN.UTF-8 catalog.delphij2012-12-282-0/+296
| | | | | Reviewed by: alphachi <alphachi mediaspirit.org> MFC after: 2 weeks
* Fix warning from valgrind when a failed entry is tested.eadler2012-12-171-0/+1
| | | | | | | | PR: kern/173008 Submitted by: Zhihao Yuan <lichray@gmail.com> Reviewed by: gabor Approved by: cperciva (implicit) MFC after: 1 week
* libc: Use O_CLOEXEC for various internal file descriptors.jilles2012-09-291-1/+1
| | | | | | | | | This fixes a race condition where another thread may fork() before CLOEXEC is set, unintentionally passing the descriptor to the child process. This commit only adds O_CLOEXEC flags to open() or openat() calls where no fcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call still leaves a race window so it should be fixed later.
* Merge from English r198040: add C message catalogue entries for newermaxim2010-06-201-0/+10
| | | | | | | | errnos: EBADMSG, EMULTIHOP, ENOLINK, EPROTO, ENOTCAPABLE. PR: docs/147983 Submitted by: pluknet MFC after: 1 week
* - More style(9) fixupsgabor2010-02-201-26/+29
| | | | Approved by: delphij (mentor)
* - Deal with some special cases [1]gabor2010-02-091-30/+54
| | | | | | | - style(9) nits Pointed out by: jilles [1] Approved by: delphij (mentor)
* - Fix some style(9) bugsgabor2010-01-291-17/+16
| | | | Pointed out by: bde
* - style(9)gabor2010-01-251-25/+25
| | | | Approved by: delphij
* Cache failing and opened catalogs in catopen() and related functions.gabor2010-01-251-17/+131
| | | | | | | | | | | | | Continuous catopen() calls cause 4 failig stat(2) each, which means a lot of overhead. It is also a good idea to keep the opened catalogs in the memory to speed up further catopen() calls to the same catalog since these catalogs are not big at all. In this case, we count references and only free() the allocated space when the reference count reaches 0. The reads and writes to the cache are syncronized with an rwlock when these functions are called from a threaded program. Requested by: kib Approved by: delphij
* - Update Galician cataloggabor2010-01-211-0/+46
|
* - Update the Spanish NLS cataloggabor2009-12-031-5/+51
| | | | | | | | | | | Reviewed by: carvay, the.infamous.paul@gmail.com, Joan Picanyol i Puig <lists-freebsd-es@biaix.org>, Ing . Marcos Luis Ortiz Valmaseda <mlortiz@uci.cu>, eskanete@gmail.com, Jose M Rodriguez <josemi@freebsd.jazztel.es>, Guillermo Hernandez <guillermo@QuerySoft.es>, dani.doni@gmail.com
* - Update Hungarian libc cataloggabor2009-11-171-0/+46
|
* Sync with C.msg r199083.jkim2009-11-162-2/+94
|
* Synchronize with C.msg revision 199083 and improve some existing messages.rene2009-11-111-30/+57
| | | | | Reviewed by: remko Approved by: remko
* Add Japanese catalogue entries for newer errnos: EBADMSG, EMULTIHOP,ume2009-11-102-0/+20
| | | | ENOLINK, EPROTO, ENOTCAPABLE.
* Add gai_strerror() catalog for ja_JP.UTF-8 and ja_JP.eucJP.ume2009-11-092-0/+72
|
* Add NLS catalogs support to gai_strerror(3).ume2009-11-091-0/+36
| | | | Controlled by NLS define.
* Fix comment.ume2009-11-092-2/+2
| | | | | Pointed out by: nyan MFC after: 1 week
* Add ja_JP.eucJP catalog.ume2009-11-092-0/+250
| | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week
* Add ja_JP.UTF-8 catalog.ume2009-11-092-0/+250
| | | | | Reviewed by: hrs, nork, takawata MFC after: 1 week
* - Strip trailing CRsgabor2009-11-081-259/+259
| | | | Requested by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* - Update Ukranian cataloggabor2009-11-081-0/+10
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* Add C message catalogue entries for newer errnos: EBADMSG, EMULTIHOP,rwatson2009-10-131-0/+10
| | | | | | | ENOLINK, EPROTO, ENOTCAPABLE. Submitted by: Alan R. S. Bueno <alan.bsd at gmail.com> MFC after: 3 days (most)
* - Add Galician NLS cataloggabor2009-09-272-0/+250
|
* Improve the German translation.netchild2009-03-251-6/+6
| | | | | | Some parts (ERANGE, ETXTBSY) triggered by Christoph Mallon. Discussed with: brueffer, gabor (previous version)
* - Add Belarusian cataloggabor2009-03-242-0/+250
| | | | | PR: conf/133004 Submitted by: Tatsiana Elavaya <t.elavaya@gmail.com>
* o Spell.maxim2009-03-211-4/+4
|
* - Add Ukranian cataloggabor2009-03-202-0/+250
| | | | Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua> (via private mail)
* - Fix typogabor2009-03-181-1/+1
| | | | | | PR: kern/132773 Reported by: Alan R. S. Bueno <alan.bsd@gmail.com> Submitted by: Murilo Opsfelder <mopsfelder@gmail.com>
* - Add Brazilian Portuguese catalog [1]gabor2009-03-163-41/+273
| | | | | | | | - Fixes for German catalog [2] PR: kern/132694 [1], conf/80504 [2] Submitted by: Murilo Opsfelder <mopsfelder@gmail.com> [1], brueffer [2]
* - Create the buildworld object directories with mtree instead of variousgabor2009-03-151-6/+0
| | | | | | mkdir calls - Remove the ugly workaroung from libc NLS, which was to create some of these directories
* - Fix object directory creation when running threaded buildworldgabor2009-03-131-1/+1
|
* - Reenable Native Language Support in libc. This feature was disabled duegabor2009-03-1314-0/+3269
| | | | | | | | | | | | | | | | | | | | | | | | | to possible breakages in the catalog handling code. Since then, that code has been replaced by the secure code from NetBSD but NLS in libc remained turned off. Tests have shown that the feature is stable and working so we can now turn it on again. - Add several new catalog files: - ca_ES.ISO8859-1 - de_DE.ISO8859-1 - el_GR.ISO8859-7 (by manolis@ and keramida@) - es_ES.ISO8859-1 (kern/123179, by carvay@) - fi_FI.ISO8859-1 - fr_FR.ISO8859-1 (kern/78756, by thierry@) - hu_HU.ISO8859-2 (by gabor@) - it_IT.ISO8859-15 - nl_NL.ISO8859-1 (corrections by rene@) - no_NO.ISO8859-1 - mn_MN.UTF-8 (by ganbold@) - sk_SK.ISO8859-2 - sv_SE.ISO8859-1 (The catalogs without explicit source has been obtained from NetBSD.) Approved by: attilio
* Use C comments since we now preprocess these files with CPP.deischen2007-04-291-1/+3
|
* Add each directory's symbol map file to SYM_MAPS.deischen2006-03-131-0/+2
|
* Add symbol maps and initial symbol version definitions to libc.deischen2006-03-131-0/+7
| | | | Reviewed by: davidxu
* Better translation.pjd2005-07-231-1/+1
|
* Use better Korean translation for `trap'jkim2005-07-162-6/+6
| | | | | | Requested by: many Korean users from bsdforum.or.kr Submitted by: perky Approved by: anholt (mentor)
* Assorted markup fixes.ru2005-06-151-1/+1
| | | | Approved by: re
* Add korean NLS message catalogs for libcphantom2005-03-072-0/+498
| | | | | Submitted by: Hye-Shik Chang <perky@FreeBSD.org> PR: misc/78290
* Add polish version of libc NLS catalog.pjd2005-03-011-0/+249
|
* Backout NLS catalog handling, until all edge cases are resolvedphantom2005-02-271-11/+0
|
* Enable processing of NLS catalogs while building/installing of libcphantom2005-02-271-0/+11
|
* Add russian version of libc NLS catalogphantom2005-02-271-0/+256
| | | | | Translated by: Valeriy Kravchuk <openxs@ipnet.kiev.ua> Alexey Dokuchaev <danfe@nsu.ru>
OpenPOWER on IntegriCloud