Commit Graph

905 Commits

Author SHA1 Message Date
Andreas Schwab
a7931fcfba Properly handle unavailable elements in LC_MONETARY category 2013-11-18 12:50:09 +01:00
Chris Leonard
1820b143aa Add Chitwani Tharu (the) 2013-11-15 12:33:40 -05:00
Andreas Schwab
714bd261e8 Fix country_num element in LC_ADDRESS for C locale 2013-11-14 16:02:59 +01:00
Chris Leonard
f6e12daa51 Correct Walaita (wal) and add Unami Delaware (unm). 2013-11-04 11:04:19 -05:00
Chris Leonard
ae129d3ca6 Add Quechua, Southern (quz) and Silesian (szl) to iso-639.def. 2013-11-03 12:43:06 -05:00
Chris Leonard
1d70fd6c75 Add Central Nahuatl (nhn). 2013-11-01 09:11:26 -04:00
Chris Leonard
da5579c2dd Add Meadow Mari (mhr). 2013-10-31 19:52:31 -04:00
Chris Leonard
b85545a671 Adjust language-code fields of LC_ADDRESS. 2013-10-24 11:43:38 -04:00
Carlos O'Donell
484c12fb1e Enhance localedef --list-archive option.
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-18 23:44:35 -04:00
Richard Sandiford
5abe068233 Fix localedef collation handling of <U0000> (bug 15948). 2013-10-18 20:58:31 +00:00
Reuben Thomas
9cd8330240 Fix typo in setlocale.c. Fixes BZ #15764 2013-10-12 14:32:09 +02:00
Joseph Myers
7602d070dc Clean up locale file alignment handling. 2013-10-08 00:14:08 +00:00
Chris Leonard
428d8c5e69 Fix typos in 3166.def. 2013-10-04 18:51:42 -04:00
Chris Leonard
afee9c1a25 Correct error in iso-3166.def 2013-10-04 09:48:45 -04:00
Chris Leonard
c755294d3c Update iso-1366.def and related occurrences 2013-10-04 08:35:44 -04:00
Joseph Myers
d3d237560b Hardcode locale archive page size as 4096. 2013-10-03 22:00:05 +00:00
Joseph Myers
975569d0d9 Remove locale file dependence on int32_t alignment. 2013-10-03 21:51:32 +00:00
Chris Leonard
e74a6fd906 Fix ayc_PE.UTF-8 and lzh_TW.UTF-8 build issues 2013-09-28 20:32:16 -04:00
Joseph Myers
6055173a0f Add localedef --big-endian and --little-endian options. 2013-09-24 22:07:47 +00:00
Joseph Myers
a3a6c3129f Make locale archive hash function architecture-independent. 2013-09-23 23:03:34 +00:00
Chris Leonard
354a7a548f Update iso-639.def 2013-09-19 20:34:03 -04:00
Richard Sandiford
08ffcf34d9 Fix some types in localedef. 2013-09-13 23:31:10 +00:00
Richard Sandiford
1ecbb381ae Make localedef output generation use more logical interfaces. 2013-09-06 17:20:45 +00:00
Chris Leonard
7447ccd98e Update iso-1427.def and related occurrences. 2013-09-04 11:42:53 -04:00
Ondřej Bílka
f24a6d086b Fix then/than typos. 2013-08-30 18:10:31 +02:00
Andreas Schwab
45b8acccaf Fix missing declaration of LC_CTYPE nonascii-case element 2013-08-27 12:21:12 +02:00
Richard Henderson
1d17fa5f8e Fix missing libc-internal.h include.
* locale/programs/locarchive.c: Include <libc-internal.h>
2013-06-25 11:21:20 -07:00
Mike Frysinger
17db6e8d6b [BZ #10283] localedef: align fixed maps to SHMLBA
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-24 20:26:58 -04:00
Siddhesh Poyarekar
59b3055595 Convert iso-639.def to utf-8 2013-06-11 22:14:43 +05:30
Ondrej Bilka
350635a59a Fix leading whitespaces. 2013-06-06 20:36:07 +02:00
Ryan S. Arnold
869378a5bf Add #include <stdint.h> to locale/gen-translit.pl and fix C-translit.h. 2013-06-05 12:01:50 -05:00
Joseph Myers
fab7ce3f5b Link extra-libs consistently with libc and ld.so. 2013-05-31 16:16:33 +00:00
Mike Frysinger
0e60d68ef0 localedef: include file name in error messages
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-25 14:38:38 -04:00
Ryan S. Arnold
e054f49430 Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
Florian Weimer
4c0fe6fe42 Use *stat64 instead of *stat in installed programs
This ensures reliable operation on file systems with inode numbers
which do not fit into 32 bits.
2013-05-10 11:42:17 +02:00
Roland McGrath
912cc4b3e4 BZ#14812: Add missing N_ markers in localedef. 2013-03-20 14:26:58 -07:00
Siddhesh Poyarekar
53a5c423fb Fix some build warnings 2013-02-26 10:40:19 +05:30
Mike Frysinger
6ff444c418 unify xmalloc prototypes & friends
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-18 17:16:05 -05:00
Roland McGrath
f1d70dad53 Remove lots of inline keywords. 2013-02-07 14:44:18 -08:00
Allan McRae
fd80f0b7a1 Fix "localedef --posix" description 2013-01-03 18:00:47 +10:00
Joseph Myers
568035b787 Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Joseph Myers
f4cf5f2d8b Add script to update copyright notices and reformat some to facilitate its use. 2013-01-01 16:29:10 +00:00
David S. Miller
0549fbba96 Update copyright years.
* catgets/gencat.c: Update copyright year.
	* csu/version.c: Likewise.
	* debug/catchsegv.sh: Likewise.
	* debug/pcprofiledump.c: Likewise.
	* debug/xtrace.sh: Likewise.
	* elf/ldconfig.c: Likewise.
	* elf/ldd.bash.in: Likewise.
	* elf/pldd.c: Likewise.
	* elf/sotruss.ksh: Likewise.
	* elf/sprof.c: Likewise.
	* iconv/iconv_prog.c: Likewise.
	* iconv/iconvconfig.c: Likewise.
	* locale/programs/locale.c: Likewise.
	* locale/programs/localedef.c: Likewise.
	* login/programs/pt_chown.c: Likewise.
	* malloc/memusage.sh: Likewise.
	* malloc/memusagestat.c: Likewise.
	* malloc/mtrace.pl: Likewise.
	* nscd/nscd.c: Likewise.
	* nss/getent.c: Likewise.
	* nss/makedb.c: Likewise.
	* posix/getconf.c: Likewise.
2013-01-01 00:11:43 -08:00
David S. Miller
3a0d900a99 Add support for sparc cryptographic hash opcodes.
* crypt/Makefile: Move test targets after toplevel Rules
	inclusion.  Grab any necessary sysdep routines when linking.
	* crypt/md5.c (md5_process_block): Remove define, we will always
	name it __md5_process_block.
	(md5_finish_ctx): Update md5_process_block call.
	(md5_stream): Likewise.
	(md5_process_bytes): Likewise.
	(md5_process_block): Rename to __md5_process_block and move to ...
	* crypt/md5-block.c: ... here.
	* crypt/sha256.c (sha256_process_block): Move to ...
	* crypt/sha256-block.c: ... here.
	* crypt/sha512.c (sha512_process_block): Move to ...
	* crypt/sha512-block.c: ... here.
	* locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
	path.
	* sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
	* sysdeps/sparc/sparc64/multiarch/Makefile
	(libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
	crypt subdir.
	(localedef-aux): Add md5 crypto assembler when in locale subdir.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
	multiarch changes.
	* sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
	* sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
	* sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
	* sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
	* sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
	* sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
	file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
	file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
2012-11-13 17:12:45 -08:00
Joseph Myers
8b748aed2a Support --with-pkgversion and --with-bugurl. 2012-11-09 22:13:45 +00:00
Marek Polacek
7b8e0d49cb Get rid of ASM_GLOBAL_DIRECTIVE. 2012-07-10 14:30:24 +02:00
Paul Eggert
02467e1ca1 [PATCH] [BZ #3440] Make LC_ALL etc. useful in #if expressions. 2012-05-10 12:38:09 +00:00
Chris Leonard
a9e8e0e0f3 "Gallegan" should be "Galician"
[BZ #13973]
	* locale/iso-639.def: Fix gl language name. Spotted by
	Yaron Shahrabani.
2012-04-13 19:09:44 +02:00
Paul Eggert
7b6235f261 Replace FSF snail mail address with URL in gperf input. 2012-03-10 00:45:34 +00:00
Ulrich Drepper
a4300c7a4d Remove distribute variable from Makefiles 2012-03-07 05:17:13 -05:00
Paul Eggert
59ba27a63a Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Marek Polacek
69db4f8f46 Remove PARAMS macros. 2012-01-31 20:02:53 +00:00
Joseph Myers
c8a89e7dd5 Remove miscellaneous __STDC__ conditionals. 2012-01-30 21:20:32 +00:00
Joseph Myers
965a54a4ee Remove __STDC__ conditionals from non-installed headers. 2012-01-26 23:31:37 +00:00
Marek Polacek
a0bfc9c78f Add noreturn attribute 2012-01-10 18:49:31 -05:00
Ulrich Drepper
ec09c1c410 Optimize xmalloc, xcalloc, xrealloc, and xstrdup
Add alloc_size attribute and apply consistently the malloc attribute
to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-08 21:19:43 -05:00
Ulrich Drepper
a0da5fe1e4 More fallout from supporting only ELF 2012-01-08 00:45:01 -05:00
Ulrich Drepper
a784e50247 Remove pre-ISO C support
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
81fb02b046 Update copyright year 2012-01-01 05:50:05 -05:00
Ulrich Drepper
16c6f99208 Add brx_IN locale 2011-12-22 11:50:52 -05:00
Andreas Schwab
f3a6cc0a56 Fix access after end of search string in regex matcher 2011-11-30 11:03:20 +01:00
Ulrich Drepper
d62a8200e1 Use O_CLOEXEC in a few more places 2011-11-15 14:00:58 -05:00
Ulrich Drepper
5f078c3286 Use strcasecmp_l instead of strcasecmp 2011-11-08 09:26:08 -05:00
Roland McGrath
110946e473 Clean up locarchive mmap reservation code. 2011-10-08 15:28:52 -07:00
Ulrich Drepper
3ce1f29594 Cleanup of configuration options
Make several tool features mandatory and simplify the code.
2011-09-10 14:34:15 -04:00
Ulrich Drepper
92963737c4 Remove support for automatic cvs check-ins
CVS use for glibc is long gone.
2011-09-08 23:19:04 -04:00
Roland McGrath
675456ef83 Clean up locale/Makefile variables for -D switches. 2011-08-14 16:28:51 -07:00
Ulrich Drepper
f9ddf089f1 Fix compile problem
l10nflist compiles for localedef now.  Optimize a bit.
2011-08-13 12:21:10 -04:00
Roland McGrath
5615eaf264 Quash some new warnings from GCC 4.6. 2011-06-10 22:44:20 -07:00
Ulrich Drepper
13f1ab36a4 Fix typo in last patch to locarchive.c 2011-05-29 20:26:04 -04:00
Ulrich Drepper
4f031072a5 Handle failure of _nl_explode_name in all cases 2011-05-28 16:59:30 -04:00
Ulrich Drepper
cc9e536dac Fix handling of LC_CTYPE in locale name handling 2011-05-21 02:06:45 -04:00
Ulrich Drepper
94ecc67da8 Add entry for Sorani language 2011-05-15 08:32:57 -04:00
Ulrich Drepper
c1e9e399b3 Add ary language entry. 2011-05-09 18:49:24 -04:00
Ulrich Drepper
96b4b1b04e Support Colon Sign
Used in the Costa Rican locale and now also in the El Salvadorian
locale.
2011-05-09 18:37:52 -04:00
Kevin Bortis
bdc2f971ee Add wae_CH locale 2011-05-09 14:04:43 -04:00
Ulrich Drepper
2952b11705 Use appropriate type for return value checking 2011-05-09 13:15:01 -04:00
Ulrich Drepper
2a81eaa5a2 Transliterate U20B9. 2011-05-09 11:53:58 -04:00
Jim Meyering
ded5b9b7c7 Remove doubled words. 2011-04-22 21:34:32 -04:00
Ulrich Drepper
c0dafcf176 Update copyright year. 2011-01-17 15:08:10 -05:00
Andreas Schwab
026373745e Properly quote output of locale 2010-08-12 09:05:50 -07:00
Richard Henderson
6e9331df8b Finish locale_data -> __locale_data transition.
The transition that was begun here
f095bb7204
was not complete.

Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:21:34 -07:00
Chris Demetriou
03615f7d83 ocale-archive differs between 32 and 64 bit platforms 2010-03-24 17:10:47 -07:00
Ulrich Drepper
561470e061 Update copyright year. 2010-03-15 11:50:59 -07:00
Joe Landers
8b2f25c233 _nl_load_locale() incorrectly handles mmap() failures 2010-01-22 12:44:58 -08:00
Ulrich Drepper
f095bb7204 Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7.  This
exposed a few bugs in the headers.  There are more changes to come.
2010-01-09 10:56:41 -08:00
Ulrich Drepper
3a00b16da4 Add missing test files. 2009-11-17 16:23:57 -08:00
Ulrich Drepper
7443244740 Handle LC_GLOBAL_LOCALE in duplocale. 2009-11-17 09:37:31 -08:00
Ulrich Drepper
4fb9241e4e Fix _NC_LOCALE_NAME definition. 2009-11-17 09:18:11 -08:00
Andreas Schwab
2c5c07f5fc Add missing declarations. 2009-10-30 07:15:12 -07:00
Ulrich Drepper
471d4931f8 Add sml entry to ISO 639 list. 2009-10-29 23:21:18 -07:00
Andreas Schwab
930799d555 Fix week-1stday in C locale 2009-10-05 10:52:22 +02:00
Ulrich Drepper
9d076f21cd Fix locale program error handling
If an unknown name is passed to locale, report it and fail.
2009-09-28 10:35:41 -07:00
Ulrich Drepper
7a7e49c020 Fix endless loop in localedef.
localedef got into an endless loop in case order_start was used for
the unnamed_section twice and the first use didn't actually result
into any definition.
2009-09-07 02:32:29 -07:00
Ulrich Drepper
659a63fb7b Thread-local locale handling part of XPG7.
I incorrectly enabled the definitions for XPG6.
2009-08-23 10:56:08 -07:00
Ulrich Drepper
63fbc91bec Use correct index for _NL_CTYPE_NONASCII_CASE. 2009-07-20 20:50:38 -07:00
Ulrich Drepper
8a4494506d Check generated locale for non-ASCII 8-bit characters with case conversion.
If a locale does not have 8-bit characters with case conversion which
are different from the ASCII conversion (±0x20) then we can perform
some optimizations.  These will follow later.
2009-07-20 20:04:42 -07:00
Andreas Schwab
ff6ff38db2 Remove redundant .gitignore files. 2009-05-16 10:18:34 +02:00
Jim Meyering
2e180a2622 rename each .cvsignore file to .gitignore 2009-05-15 18:13:37 +02:00
Ulrich Drepper
6284c9f61e * locale/programs/locarchive.c (create_archive): Add MAP_PRIVATE
to MAP_ANON in PROT_NONE mmap64 call.
	(open_archive): Likewise.
	(file_data_available_p): Use mmap64 instead of mremap.
	(enlarge_archive): Likewise.  Update head if ah->addr changed.
	Attempt to reserve address space after mmap64 region.
2009-04-27 14:07:57 +00:00