summaryrefslogtreecommitdiff
path: root/lib/libc/locale
AgeCommit message (Collapse)Author
2023-04-16Fix parsing a locale string with multiple components.mlelstv
Also check for truncation of a long locale string.
2022-12-31setlocale.3: Reflect state of NetBSD locale support in the 21st centurynia
Don't use LC_COLLATE in a real code example, since a real call to set LC_COLLATE will fail. Mention this. Inconsistencies noticed by khw on IRC.
2022-04-19lib: remove CONSTCOND commentrillig
Since 2021-01-31, lint doesn't need it anymore for the common pattern of 'do ... while (0)'.
2021-10-24setlocale.3: minor updates to reflect the current implementationgutteridge
Reflect a couple of amendments noted by John Marino on tech-userlevel: http://mail-index.netbsd.org/tech-userlevel/2021/10/19/msg013091.html
2021-02-15Remove reference to multibyte(3) and trailing commas.wiz
2021-02-15Remove FreeBSD portions that are not relevant to our implementation (pointedchristos
out by joerg@)
2021-02-15Add missing man pages (from FreeBSD)christos
2020-06-02Don't overalign _RuneStatePriv, it must share the alignment of mbstate_tjoerg
it aliased with. Assert that the alignment actually used reflects the alignment required by existing implementation and for newly build modules assert that it is at most the guaranteed alignment.
2018-01-04Add bunch of missing includes of namespace.h in libckamil
The NetBSD Standard C Library uses internally some of its functions with a mangled symbol name, usually "_symbol". The internal functions shall not use the global (public) symbols. This change eliminates usage of the global changes of the following symbols: - strlcat -> _strlcat - sysconf -> __sysconf - closedir -> _closedir - fparseln -> _fparseln - kill -> _kill - mkstemp -> _mkstemp - reallocarr -> _reallocarr - strcasecmp -> _strcasecmp - strncasecmp -> _strncasecmp - strptime -> _strptime - strtok_r -> _strtok_r - sysctl -> _sysctl - dlopen -> __dlopen - dlclose -> __dlclose - dlsym -> __dlsym Sponsored by <The NetBSD Foundation>
2017-12-09PR/52801: Kamil Rytarowski: Add missing weak aliases for wcsto{f,d,ld}_lchristos
XXX: pullup-8
2017-10-25Add towupper to the NAME section as well.abhinav
2017-07-03Remove workaround for ancient HTML generation code.wiz
2017-01-10pacify lint.christos
2016-06-27Fix function prototype in the SYNOPSISabhinav
Also, fix function name in the RETURN VALUES section. From Henning Petersen in PR lib/51284
2016-04-29Go back to just using normal visibility for the locale symbols. Withoutjoerg
an actual specifier like dllimport, protected visibility is unusable.
2016-03-17undo the dso protected for clangchristos
2016-03-08Undo the __dso_protected hackery.christos
2016-01-29disable dso protected to work around binutils bug.christos
2013-09-13Redo the locale cache to be constant. It now contains the localeconv()joerg
data and which LC_MONETARY and LC_NUMERIC values it is derived from. In newlocale(3) and setlocale(3), check for the existing entries and on miss, create a new entry. This is currently not using a lock for the list as the worst case is a small memory leak.
2013-08-20Extract the data for nl_langinfo directly from the correspondingjoerg
part implementation using a category/offset table.
2013-08-19Remove most LC_CTYPE specific parts of locale.cache.joerg
2013-08-19Missing locale specific change.joerg
2013-08-19Shut up lint.joerg
2013-08-19Add nl_langinfo_l, catopen_l and wcsftime_l.joerg
2013-08-18Rename fixup to update_global to better reflect the purpose.joerg
Remove the various Current pointers, they are implementation internals that shouldn't be leaked. Remove _CATEGORY_DEFAULT related handling and directly pick the implemenation pointer from the C locale. Merge the C locale data into global_locale.c with the exception of _DefaultRuneLocale. Mark that one hidden. Move _RUNE_LOCALE and _CITRUS_CTYPE into multibyte.h and pick up the correct rl_citrus_ctype for non-default locales.
2013-08-17Remove empty file.joerg
2013-05-28Add mbsnrtowcs and wcsnrtombs. Approved by core.joerg
2013-05-17Provide explicit LC_C_LOCALE accessor and drop the various NULL checks.joerg
Provide LC_GLOBAL_LOCALE in a way that works with all locale functions. Merge constant data used by the initial global locale and the C locale. Drop function call layer for _current_locale() and directly return the locale reference, not a pointer to it. Use protected access for global variables, so that libc references can avoid the GOT overhead.
2013-04-30Make that to process PATH_LOCALE the first time _find_category isjoerg
called. Use this to implement newlocale and provide duplocale/freelocale as well. Based on patches by Takehiko Nozaki with simplications and fix for the init order by myself.
2013-04-21Store time-specific locale data directly in the locale.joerg
Ad dstrftime_l, strftime_lz and strptime_l.
2013-04-19Add MB_CUR_MAX_L.joerg
2013-04-18Add wcscoll_l, wcsxfrm_l, wcsncasecmp_l, wcscasecmp_l, btowc_l,joerg
mbrlen_l, mbsinit_l, mbsrtowcs_l, wcrtomb_l, wcsrtombs_l and wctob_l.
2013-04-18Add wcstof_l, wcstod_l and wcstold_l.joerg
2013-04-18Add mblen_l, mbstowcs_l, wctomb_l, mbtowc_l and wcstombs_l.joerg
2013-04-17Add localeconv_l.joerg
2013-04-16Add support for wcstoimax_l and friends.joerg
2013-04-16Add wcwidth_l, wcswidth_l and the wctype.h family of *_l functions.joerg
2013-04-14Provide a const copy of global_locale for libc-internal use.joerg
This will be used by *_l when a NULL pointer is given.
2013-04-14Rename struct _locale_impl_t to struct _locale, since it will end up asjoerg
locale_t later.
2013-04-13Extend ctype classification table to 16bit. Based on patch byjoerg
Takehiko Nozaki, with changes to compile fail when using the old names and to exploit __BUILD_LEGACY
2012-08-08Restore RCS Id lost in previous.wiz
2012-08-08fix PR lib/46781 statically compiled bash makes locale loading fail.tnozaki
analyzed and patch provided by enami@ nonaka@ obache@ soda@, thanks. patch modified by me.
2012-06-25Update old-style definitions to ANSI, remove a couple of registerabs
definitions along the way. Fixed gcc 4.1 build (thank you vax)
2012-06-24fix old style definitions; XXX: gcc should have picked them up but it did not.christos
2012-03-21cast CHAR_MAX to (char) for unsigned character machineschristos
2012-03-20Use C89 Prototypes.matt
Remove use of __P
2012-03-04don't use __link_set_* stuff for locale implementation.tnozaki
patch reviewed by matt@, thanks.
2012-01-20Remove code for CITRUS!=yes.joerg
2012-01-18_runetype_from_ctype is unusedjoerg
2011-10-15close on exec fixes:christos
- open + fcntl -> open O_CLOEXEC - configuration database file descriptors that can stay open are now opened fopen(db, "re")