aboutsummaryrefslogtreecommitdiff
path: root/locale/programs
AgeCommit message (Collapse)AuthorFilesLines
2016-01-24strcoll: Remove incorrect STRDIFF-based optimization (Bug 18589).Carlos O'Donell1-9/+0
The optimization introduced in commit f13c2a8dff2329c6692a80176262ceaaf8a6f74e, causes regressions in sorting for languages that have digraphs that change sort order, like cs_CZ which sorts ch between h and i. My analysis shows the fast-forwarding optimization in STRCOLL advances through a digraph while possibly stopping in the middle which results in a subsequent skipping of the digraph and incorrect sorting. The optimization is incorrect as implemented and because of that I'm removing it for 2.23, and I will also commit this fix for 2.22 where it was originally introduced. This patch reverts the optimization, introduces a new bug-strcoll2.c regression test that tests both cs_CZ.UTF-8 and da_DK.ISO-8859-1 and ensures they sort one digraph each correctly. The optimization can't be applied without regressing this test. Checked on x86_64, bug-strcoll2.c fails without this patch and passes after. This will also get a fix on 2.22 which has the same bug. (cherry picked from commit 87701a58e291bd7ac3b407d10a829dac52c9c16e) (cherry picked from commit 6c84109cfa26f35c3dfed3acb97d347361bd5849)
2015-08-05Fix localedef segfault when run under exec-shield, PaX or similarJakub Jelinek1-0/+36
http://bugs.debian.org/198099 http://bugs.debian.org/231438
2015-06-09Remove unused PREDEFINED_CLASSES codeMarko Myllynen1-77/+4
Hi, AFAICS PREDEFINED_CLASSES is never defined thus the code is unused. It would seem that the code is related to LO_LTYPE which was discussed in the past but there are no any recent references: http://pubs.opengroup.org/onlinepubs/9638399/loltype.htm Patch below, compiles and passes make check. 2015-05-12 Marko Myllynen <myllynen@redhat.com> * locale/C-ctype.c (PREDEFINED_CLASSES): Remove. * locale/programs/ld-ctype.c: Likewise.
2015-05-12Improve strcoll with strdiff.Leonhard Holz1-0/+9
This patch improves strcoll hot case by finding first byte that mismatches. That is in likely case enough to determine comparison result.
2015-01-13Remove some references to bcopy/bcmp/bzero.Roland McGrath1-4/+0
2015-01-02Update copyright dates not handled by scripts/update-copyrights.Joseph Myers2-2/+2
I've updated copyright dates in glibc for 2015. This is the patch for the changes not generated by scripts/update-copyrights and subsequent build / regeneration of generated files. Apart from the files updated last time (of which sotruss.ksh had moved to sotruss.sh during the year) this also updates nptl/version.c (missed from 2006 until October) and sysdeps/unix/sysv/linux/lddlibc4.c (missed since 2009). * NEWS: Update copyright dates. * catgets/gencat.c (print_version): Likewise. * csu/version.c (banner): Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c (print_version): Likewise. * debug/xtrace.sh (do_version): Likewise. * elf/ldconfig.c (print_version): Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c (print_version): Likewise. * elf/sotruss.sh: Likewise. * elf/sprof.c (print_version): Likewise. * iconv/iconv_prog.c (print_version): Likewise. * iconv/iconvconfig.c (print_version): Likewise. * locale/programs/locale.c (print_version): Likewise. * locale/programs/localedef.c (print_version): Likewise. * login/programs/pt_chown.c (print_version): Likewise. * malloc/memusage.sh (do_version): Likewise. * malloc/memusagestat.c (print_version): Likewise. * malloc/mtrace.pl: Likewise. * manual/libc.texinfo: Likewise. * nptl/version.c (banner): Likewise. * nscd/nscd.c (print_version): Likewise. * nss/getent.c (print_version): Likewise. * nss/makedb.c (print_version): Likewise. * posix/getconf.c (main): Likewise. * scripts/test-installation.pl: Likewise. * sysdeps/unix/sysv/linux/lddlibc4.c (main): Likewise.
2015-01-02Update copyright dates with scripts/update-copyrights.Joseph Myers38-38/+38
2014-12-16Return allocated array instead of unallocated.Ondřej Bílka1-8/+8
In locale/programs/ld-ctype.c we returned array that was on stack. Fixed by returning static array instead.
2014-12-11Get rid of warning inlining failed in call to maybe_swap_uint32Stefan Liebler1-1/+2
2014-09-12Minor cleanup in locale.cRoland McGrath1-135/+128
2014-09-12Minor cleanup in ld-ctype.cRoland McGrath1-130/+128
2014-07-10Fix -Wundef warning for HAVE_OBSTACKSiddhesh Poyarekar1-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.
2014-05-26Fix searching localedef input on I18NPATH (BZ #16984)Andreas Schwab2-2/+2
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 McRae38-38/+38
2013-11-20Fix build warning in locarchive.cSiddhesh Poyarekar1-3/+3
2013-11-19Complete display of LC_MONETARYAndreas Schwab1-0/+18
2013-11-18Properly handle unavailable elements in LC_MONETARY categoryAndreas Schwab3-1/+7
2013-10-18Enhance localedef --list-archive option.Carlos O'Donell4-10/+26
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-08Clean up locale file alignment handling.Joseph Myers4-6/+8
2013-10-03Hardcode locale archive page size as 4096.Joseph Myers1-1/+6
2013-10-03Remove locale file dependence on int32_t alignment.Joseph Myers1-24/+14
2013-09-24Add localedef --big-endian and --little-endian options.Joseph Myers5-190/+292
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-08-30Fix then/than typos.Ondřej Bílka2-2/+2
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 Frysinger1-16/+45
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-06Fix leading whitespaces.Ondrej Bilka2-2/+2
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. Arnold22-0/+23
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-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 McGrath1-1/+1
2013-01-03Fix "localedef --posix" descriptionAllan McRae1-1/+1
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers38-41/+38
2013-01-01Update copyright years.David S. Miller2-4/+4
* 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.
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers2-8/+17
2012-03-10Replace FSF snail mail address with URL in gperf input.Paul Eggert4-28/+34
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert34-68/+34
2012-01-31Remove PARAMS macros.Marek Polacek1-4/+0
2012-01-30Remove miscellaneous __STDC__ conditionals.Joseph Myers1-5/+1
2012-01-26Remove __STDC__ conditionals from non-installed headers.Joseph Myers1-6/+2
2012-01-10Add noreturn attributeMarek Polacek1-1/+1
2012-01-08Optimize xmalloc, xcalloc, xrealloc, and xstrdupUlrich Drepper4-13/+16
Add alloc_size attribute and apply consistently the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
2012-01-01Update copyright yearUlrich Drepper2-4/+4
2011-10-08Clean up locarchive mmap reservation code.Roland McGrath1-42/+32
2011-06-10Quash some new warnings from GCC 4.6.Roland McGrath3-8/+1