aboutsummaryrefslogtreecommitdiff
path: root/locale
AgeCommit message (Collapse)AuthorFilesLines
2014-05-26Fix searching localedef input on I18NPATH (BZ #16984)Andreas Schwab2-2/+2
2014-05-20fix nl_langinfo with static linking (BZ #16915)Aurelien Jarno1-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>
2014-05-03Revert incorrect removal of the XDR currency from locale/iso-4217.defAdam Conrad1-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.
2014-02-26Consistently include Makeconfig after defining subdir.Joseph Myers1-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.
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka4-12/+12
2014-01-01Update remaining copyright datesAllan McRae2-2/+2
Update copyright years that are not handled by scripts/update-copyright.
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae99-99/+99
2013-12-03locale: don't crash if locale-archive contains all zerosAurelien Jarno1-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.
2013-11-20Fix build warning in locarchive.cSiddhesh Poyarekar1-3/+3
2013-11-20Rename Oriya locale to Odia (bug 15601)Siddhesh Poyarekar1-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
2013-11-19Complete display of LC_MONETARYAndreas Schwab3-1/+21
2013-11-18Properly handle unavailable elements in LC_MONETARY categoryAndreas Schwab5-28/+28
2013-11-15Add Chitwani Tharu (the)Chris Leonard1-0/+1
2013-11-14Fix country_num element in LC_ADDRESS for C localeAndreas Schwab1-1/+1
2013-11-04Correct Walaita (wal) and add Unami Delaware (unm).Chris Leonard1-1/+2
2013-11-03Add Quechua, Southern (quz) and Silesian (szl) to iso-639.def.Chris Leonard1-0/+2
2013-11-01Add Central Nahuatl (nhn).Chris Leonard1-0/+1
2013-10-31Add Meadow Mari (mhr).Chris Leonard1-0/+1
2013-10-24Adjust language-code fields of LC_ADDRESS.Chris Leonard1-0/+1
2013-10-18Enhance localedef --list-archive option.Carlos O'Donell5-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
2013-10-18Fix localedef collation handling of <U0000> (bug 15948).Richard Sandiford1-0/+4
2013-10-12Fix typo in setlocale.c. Fixes BZ #15764Reuben Thomas1-1/+1
2013-10-08Clean up locale file alignment handling.Joseph Myers5-7/+9
2013-10-04Fix typos in 3166.def.Chris Leonard1-1/+1
2013-10-04Correct error in iso-3166.defChris Leonard1-1/+1
2013-10-04Update iso-1366.def and related occurrencesChris Leonard1-3/+9
2013-10-03Hardcode locale archive page size as 4096.Joseph Myers1-1/+6
2013-10-03Remove locale file dependence on int32_t alignment.Joseph Myers3-32/+32
2013-09-28Fix ayc_PE.UTF-8 and lzh_TW.UTF-8 build issuesChris Leonard1-0/+1
2013-09-24Add localedef --big-endian and --little-endian options.Joseph Myers5-190/+292
2013-09-23Make locale archive hash function architecture-independent.Joseph Myers1-1/+1
2013-09-19Update iso-639.defChris Leonard1-1/+15
2013-09-13Fix some types in localedef.Richard Sandiford1-4/+3
2013-09-06Make localedef output generation use more logical interfaces.Richard Sandiford15-1611/+658
2013-09-04Update iso-1427.def and related occurrences.Chris Leonard1-16/+8
2013-08-30Fix then/than typos.Ondřej Bílka2-2/+2
2013-08-27Fix missing declaration of LC_CTYPE nonascii-case elementAndreas Schwab1-0/+1
2013-06-25Fix missing libc-internal.h include.Richard Henderson1-0/+1
* locale/programs/locarchive.c: Include <libc-internal.h>
2013-06-24[BZ #10283] localedef: align fixed maps to SHMLBAMike Frysinger2-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>
2013-06-11Convert iso-639.def to utf-8Siddhesh Poyarekar1-5/+5
2013-06-06Fix leading whitespaces.Ondrej Bilka2-2/+2
2013-06-05Add #include <stdint.h> to locale/gen-translit.pl and fix C-translit.h.Ryan S. Arnold2-1/+2
2013-05-31Link extra-libs consistently with libc and ld.so.Joseph Myers1-6/+0
2013-05-25localedef: include file name in error messagesMike Frysinger1-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>
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold27-0/+29
2013-05-10Use *stat64 instead of *stat in installed programsFlorian Weimer2-14/+14
This ensures reliable operation on file systems with inode numbers which do not fit into 32 bits.
2013-03-20BZ#14812: Add missing N_ markers in localedef.Roland McGrath1-5/+6
2013-02-26Fix some build warningsSiddhesh Poyarekar1-1/+1
2013-02-18unify xmalloc prototypes & friendsMike Frysinger3-15/+3
These prototypes are duplicated in many places. Add a dedicated header for holding prototypes for program-specific functions to avoid that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-02-07Remove lots of inline keywords.Roland McGrath3-3/+3