about summary refs log tree commit diff
path: root/locale
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor cleanup in ld-ctype.cRoland McGrath2014-09-121-130/+128
|
* Move findidx nested functions to top-level.Roland McGrath2014-09-112-6/+20
|
* _nl_find_locale: Improve handling of crafted locale names [BZ #17137]Florian Weimer2014-07-101-13/+61
| | | | | Prevent directory traversal in locale-related environment variables (CVE-2014-0475).
* setlocale: Use the heap for the copy of the locale argumentFlorian Weimer2014-07-101-2/+12
| | | | This avoids alloca calls with potentially large arguments.
* Fix -Wundef warning for HAVE_OBSTACKSiddhesh Poyarekar2014-07-101-5/+1
| | | | | | Remove the HAVE_OBSTACK macro check and include obstack check in include path order since we don't have a copy of obstack.h in the current directory.
* Clean up HAVE_CONFIG_H and STDC_HEADERS.Roland McGrath2014-06-201-1/+1
|
* Fix searching localedef input on I18NPATH (BZ #16984)Andreas Schwab2014-05-262-2/+2
|
* fix nl_langinfo with static linking (BZ #16915)Aurelien Jarno2014-05-201-0/+15
| | | | | | | | | | | | | | | | For static linking the locale code avoids linking code and data for unused categories. However for nl_langinfo we know only at runtime which categories are used, so direct reference to every nl_current_CATEGORY symbol should be done. This was broken by commit bc3e1c127392da88d0c8bf2ae728147982a3d1bc where nl_langinfo_l and nl_langinfo have been merged and some code has been lost in the process. In order to detect locales issues with static linking, compile a version of tst-langinfo with static linking. Note: this is Debian bug#747103 reported by Raphael <raphael.astier@eliot-sa.com>
* Revert incorrect removal of the XDR currency from locale/iso-4217.defAdam Conrad2014-05-031-0/+1
| | | | | | | | | | | | In 7447ccd98ee3944a95247ae23284dfac1de6c2aa, the XDR currency was removed from locale/iso-4217.def, despite the fact that it's both still a part of the standard, according to the official table: http://www.currency-iso.org/dam/downloads/table_a1.xml ... and, more importantly, is referenced from localedata/i18n, so any quick-and-dirty locale definition that uses "copy i18n" for LC_MONETARY wouldn't work anymore.
* Consistently include Makeconfig after defining subdir.Joseph Myers2014-02-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In <https://sourceware.org/ml/libc-alpha/2014-01/msg00196.html> I noted it was necessary to add includes of Makeconfig early in various subdirectory makefiles for the tests-special variable settings added by that patch to be conditional on configuration information. No-one commented on the general question there of whether Makeconfig should always be included immediately after the definition of subdir. This patch implements that early inclusion of Makeconfig in each directory (which is a lot easier than consistent placement of includes of Rules). Includes are added if needed, or moved up if already present. Subdirectory "all:" targets are removed, since Makeconfig provides one. There is potential for further cleanups I haven't done. Rules and Makerules have code such as ifneq "$(findstring env,$(origin headers))" "" headers := endif to override to empty any value of various variables that came from the environment. I think there is a case for Makeconfig setting all the subdirectory variables (other than subdir) to empty to ensure no outside value is going to take effect if a subdirectory fails to define a variable. (A list of such variables, possibly out of date and incomplete, is in manual/maint.texi.) Rules and Makerules would give errors if Makeconfig hadn't already been included, instead of including it themselves. The special code to override values coming from the environment would then be obsolete and could be removed. Tested x86_64, including that installed binaries are identical before and after the patch. * argp/Makefile: Include Makeconfig immediately after defining subdir. * assert/Makefile: Likewise. * benchtests/Makefile: Likewise. * catgets/Makefile: Likewise. * conform/Makefile: Likewise. * crypt/Makefile: Likewise. * csu/Makefile: Likewise. (all): Remove target. * ctype/Makefile: Include Makeconfig immediately after defining subdir. * debug/Makefile: Likewise. * dirent/Makefile: Likewise. * dlfcn/Makefile: Likewise. * gmon/Makefile: Likewise. * gnulib/Makefile: Likewise. * grp/Makefile: Likewise. * gshadow/Makefile: Likewise. * hesiod/Makefile: Likewise. * hurd/Makefile: Likewise. (all): Remove target. * iconvdata/Makefile: Include Makeconfig immediately after defining subdir. * inet/Makefile: Likewise. * intl/Makefile: Likewise. * io/Makefile: Likewise. * libio/Makefile: Likewise. (all): Remove target. * locale/Makefile: Include Makeconfig immediately after defining subdir. * login/Makefile: Likewise. * mach/Makefile: Likewise. (all): Remove target. * malloc/Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. * manual/Makefile: Include Makeconfig immediately after defining subdir. * math/Makefile: Likewise. * misc/Makefile: Likewise. * nis/Makefile: Likewise. * nss/Makefile: Likewise. * po/Makefile: Likewise. (all): Remove target. * posix/Makefile: Include Makeconfig immediately after defining subdir. * pwd/Makefile: Likewise. * resolv/Makefile: Likewise. * resource/Makefile: Likewise. * rt/Makefile: Likewise. * setjmp/Makefile: Likewise. * shadow/Makefile: Likewise. * signal/Makefile: Likewise. * socket/Makefile: Likewise. * soft-fp/Makefile: Likewise. * stdio-common/Makefile: Likewise. * stdlib/Makefile: Likewise. * streams/Makefile: Likewise. * string/Makefile: Likewise. * sunrpc/Makefile: Likewise. (all): Remove target. * sysvipc/Makefile: Include Makeconfig immediately after defining subdir. * termios/Makefile: Likewise. * time/Makefile: Likewise. * timezone/Makefile: Likewise. (all): Remove target. * wcsmbs/Makefile: Include Makeconfig immediately after defining subdir. * wctype/Makefile: Likewise. libidn/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. localedata/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. (all): Remove target. nptl/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir. nptl_db/ChangeLog: * Makefile: Include Makeconfig immediately after defining subdir.
* Use glibc_likely instead __builtin_expect.Ondřej Bílka2014-02-104-12/+12
|
* Update remaining copyright datesAllan McRae2014-01-012-2/+2
| | | | Update copyright years that are not handled by scripts/update-copyright.
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-0199-99/+99
|
* locale: don't crash if locale-archive contains all zerosAurelien Jarno2013-12-031-0/+4
| | | | | | | | | In case of power failure followed by filesystem issues locale-archive can end-up containing all zeros. In that case all calls to setlocale() generate a SIGFPE. This renders a system with a default non-C locale unbootable. Avoid this by ignoring the locale instead of generating a SIGFPE.
* Fix build warning in locarchive.cSiddhesh Poyarekar2013-11-201-3/+3
|
* Rename Oriya locale to Odia (bug 15601)Siddhesh Poyarekar2013-11-201-1/+1
| | | | | | | | | | | | The state of Orissa was officially renamed the state to Odisha and the language from Oriya to Odia in 2010. References: http://zeenews.india.com/election09/story.aspx?aid=739995 http://orissamatters.com/2011/11/07/orissa-became-odisha/ http://www.ndtv.com/article/india/parliament-passes-bill-to-change-orissa-s-name-93888 http://orissa.gov.in/e-magazine/Orissareview/2011/Nov/engpdf/9-17.pdf
* Complete display of LC_MONETARYAndreas Schwab2013-11-193-1/+21
|
* Properly handle unavailable elements in LC_MONETARY categoryAndreas Schwab2013-11-185-28/+28
|
* Add Chitwani Tharu (the)Chris Leonard2013-11-151-0/+1
|
* Fix country_num element in LC_ADDRESS for C localeAndreas Schwab2013-11-141-1/+1
|
* Correct Walaita (wal) and add Unami Delaware (unm).Chris Leonard2013-11-041-1/+2
|
* Add Quechua, Southern (quz) and Silesian (szl) to iso-639.def.Chris Leonard2013-11-031-0/+2
|
* Add Central Nahuatl (nhn).Chris Leonard2013-11-011-0/+1
|
* Add Meadow Mari (mhr).Chris Leonard2013-10-311-0/+1
|
* Adjust language-code fields of LC_ADDRESS.Chris Leonard2013-10-241-0/+1
|
* Enhance localedef --list-archive option.Carlos O'Donell2013-10-185-10/+28
| | | | | | | | | | The localedef --list-archive option claims that it can accept a [file] argument and list the contents of that archive. The support was never implemented. This patch adds that support and allows --list-archive to work as expected. You can now use localedef to list the contents of arbitrary locale archives by using: ./localedef --list-archive file
* Fix localedef collation handling of <U0000> (bug 15948).Richard Sandiford2013-10-181-0/+4
|
* Fix typo in setlocale.c. Fixes BZ #15764Reuben Thomas2013-10-121-1/+1
|
* Clean up locale file alignment handling.Joseph Myers2013-10-085-7/+9
|
* Fix typos in 3166.def.Chris Leonard2013-10-041-1/+1
|
* Correct error in iso-3166.defChris Leonard2013-10-041-1/+1
|
* Update iso-1366.def and related occurrencesChris Leonard2013-10-041-3/+9
|
* Hardcode locale archive page size as 4096.Joseph Myers2013-10-031-1/+6
|
* Remove locale file dependence on int32_t alignment.Joseph Myers2013-10-033-32/+32
|
* Fix ayc_PE.UTF-8 and lzh_TW.UTF-8 build issuesChris Leonard2013-09-281-0/+1
|
* Add localedef --big-endian and --little-endian options.Joseph Myers2013-09-245-190/+292
|
* Make locale archive hash function architecture-independent.Joseph Myers2013-09-231-1/+1
|
* Update iso-639.defChris Leonard2013-09-191-1/+15
|
* Fix some types in localedef.Richard Sandiford2013-09-131-4/+3
|
* Make localedef output generation use more logical interfaces.Richard Sandiford2013-09-0615-1611/+658
|
* Update iso-1427.def and related occurrences.Chris Leonard2013-09-041-16/+8
|
* Fix then/than typos.Ondřej Bílka2013-08-302-2/+2
|
* Fix missing declaration of LC_CTYPE nonascii-case elementAndreas Schwab2013-08-271-0/+1
|
* Fix missing libc-internal.h include.Richard Henderson2013-06-251-0/+1
| | | | * locale/programs/locarchive.c: Include <libc-internal.h>
* [BZ #10283] localedef: align fixed maps to SHMLBAMike Frysinger2013-06-242-16/+52
| | | | | | | | | | | | Many Linux arches require fixed mmaps to be aligned higher than pagesize, so use the SHMLBA define as it represents this quantity exactly. This fixes spurious errors seen on those arches like: cannot map archive header: Invalid argument URL: http://sourceware.org/bugzilla/show_bug.cgi?id=10283 Reported-by: CHIKAMA Masaki <masaki.chikama@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Convert iso-639.def to utf-8Siddhesh Poyarekar2013-06-111-5/+5
|
* Fix leading whitespaces.Ondrej Bilka2013-06-062-2/+2
|
* Add #include <stdint.h> to locale/gen-translit.pl and fix C-translit.h.Ryan S. Arnold2013-06-052-1/+2
|
* Link extra-libs consistently with libc and ld.so.Joseph Myers2013-05-311-6/+0
|
* localedef: include file name in error messagesMike Frysinger2013-05-251-2/+2
| | | | | | | | | | When mkstemp fails, the error message the user gets back is: cannot create temporary file: No such file or directory That isn't terribly useful in figuring out why, so include the full filename we tried to create in the error output. Signed-off-by: Mike Frysinger <vapier@gentoo.org>