summaryrefslogtreecommitdiff
path: root/libc/intl
AgeCommit message (Collapse)Author
2013-06-15Merge changes between r23217 and r23296 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@23297 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2013-06-04Merge changes between r23097 and r23217 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@23218 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2013-03-03Merge changes between r22241 and r22552 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@22553 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2013-01-18Merge changes between r22176 and r22241 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@22242 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2013-01-10Merge changes between r22062 and r22176 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@22177 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-10-25Merge changes between r21108 and r21352 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@21353 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-09-25Merge changes between r20391 and r20863 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@20864 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-08-28Merge changes between r20213 and r20391 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@20392 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-07-31Merge changes between r19464 and r19920 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@19921 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-06-22Merge changes between r19162 and r19234 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@19235 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-05-26Merge changes between r18519 and r18730 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@18731 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-03-10Merge changes between r17501 and r17530 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@17531 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-03-07Merge changes between r17384 and r17457 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@17458 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-02-18Merge changes between r17050 and r17194 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@17195 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2012-02-08Merge changes between r16568 and r17050 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@17051 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2011-11-17Merge changes between r15584 and r15868 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@15869 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2011-10-25Merge changes between r15223 and r15532 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@15545 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2011-09-06Merge changes between r14661 and r15223 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@15224 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2011-07-22Merge changes between 14282 and r14661 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@14662 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2009-05-16Merge changes between r8452 and r8459 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@8460 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2009-02-13Merge changes between r7867 and r7922 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@7923 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2008-12-15 * intl/dcigettext.c: Condition use of libc_setlocale_lock onmaxim
OPTION_EGLIBC_LOCALE_CODE. * debug/Makefile (tests): Condition affected tests on OPTION_EGLIBC_LOCALE_CODE. * iconvdata/Makefile (tests): Same. git-svn-id: svn://svn.eglibc.org/trunk@7542 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2008-04-02Merge changes between r5678 and r5759 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@5760 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2008-03-27Merge changes between r5247 and r5678 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@5679 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2008-02-20Merge changes between r4014 and r5247 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@5248 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-12-11Clean up test results with OPTION_EGLIBC_LOCALE_CODE disabled.jimb
* debug/tst-chk1.c: Omit locale tests when group is disabled. * intl/Makefile (tests): Put tst-translit, tst-gettext2, tst-codeset, and tst-gettext3 in the group. * libio/Makefile (tests): Put tst-fgetws, tst-fopenloc, tst-setvbuf1, tst-ungetwc1, tst-ungetwc2, bug-ftell, bug-ungetwc2, tst-widetext, and tst-fopenloc in the group; some were formerly in OPTION_POSIX_WIDE_CHAR_DEVICE_IO. * nptl/Makefile (tests): Put tst-locale1 in the group. * posix/Makefile (tests): Put bug-regex17, bug-regex18, bug-regex20, bug-regex23, and bug-regex26 in the group. (tst-rxspencer): Pass --utf8 only when the group is enabled. * posix/bug-regex6.c: Omit non-C locale tests when group is disabled. * stdio-common/Makefile (tests): Put bug14 and scanf13 in the group. * stdlib/Makefile (tests): Put tst-strtod4, tst-strtod5, and testmb2 in the group. * stdlib/tst-strtod.c: Omit locale tests when group is disabled. * string/tst-strxfrm.c, string/tst-strxfrm2.c: Same. * time/Makefile (tests): Put tst-ftime_l in the group. Fix code broken by OPTION_EGLIBC_LOCALE_CODE. * posix/regex_internal.h: #include <gnu/option-groups.h>. (string_mb_cur_max, dfa_mb_cur_max): New macros for accessing the 'mb_cur_max' fields of re_string_t and re_dfa_t, whose values can be constant when the group is disabled. Use them throughout. * posix/regex_internal.c: Use string_mb_cur_max and dfa_mb_cur_max as appropriate. * posix/regcomp.c: Same. (re_compile_fastmap_iter): Process COMPLEX_BRACKET nodes only when the group is enabled. (init_dfa): When the group is disabled, clear map_notascii. (parse_bracket_exp): Process MB_CHAR elements only when the group is enabled. Otherwise, fix 'nrules' at zero, for the compiler's benefit, and assume the collation sequence is the identity. (parse_bracket_element): Create MB_CHAR elements only when the group is enabled. (build_equiv_class): When the group is disabled, we know there will be no collation rules. (build_charclass): When the group is disabled, do not try to process references to wide character categories accessed via 'wctype'. * posix/regexec.c: Use string_mb_cur_max and dfa_mb_cur_max as appropriate. (find_collation_sequence_value): Define function only when the group is enabled. (check_node_accept_bytes): Check character against 'wctype' style classes only if group is enabled. When the group is disabled, Skip collation-rule-based matching. * posix/fnmatch.c: #include <gnu/option-groups.h>. Define HANDLE_MULTIBYTE only if when OPTION_EGLIBC_LOCALE_CODE is enabled. * posix/fnmatch_loop.c (FCT (internal_fnmatch or internal_fnwmatch)): If the group is disabled, assume that the collation sequence is the identity. * stdio-common/_i18n_number.h (_i18n_number_rewrite): Provide only a trivial definition when the group is disabled. * stdio-common/vfprintf.c: #include <gnu/option-groups.h>. (LOCALE_SUPPORT): Define. (vfprintf): Consult it as appropriate. * stdio-common/vfscanf.c: #include <gnu/option-groups.h>. (_IO_vfwscanf): If the group is disabled, don't try to consult the locale for decimal point and thousands separator characters, or for custom digits. * stdlib/strtod_l.c (__STRTOF_INTERNAL): Don't try to consult the locale's numeric settings. * string/strxfrm_l.c, string/strcoll_l.c: Don't try to consult the locale's collation settings. git-svn-id: svn://svn.eglibc.org/trunk@4501 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-10-30* Makeconfig ($(common-objpfx)gnu/option-groups.h): New generatedjimb
header. * scripts/option-groups.awk: New script, to generate it. * debug/Makefile (CFLAGS-segfault.c): Don't define option group symbols here. * wcsmbs/Makefile (CFLAGS-wcsmbsload.c): Same. * time/Makefile (CFLAGS-strftime_l.c, CFLAGS-strptime_l.c): Same. * intl/Makefile (CFLAGS-dcigettext.c): Same. * sysdeps/unix/sysv/linux/Makefile (CFLAGS-gethostid.c) (CFLAGS-libc_fatal.c): Same. * misc/Makefile (CFLAGS-error.c, CFLAGS-err.c): Same. * nss/Makefile (CFLAGS-nsswitch.c, CFLAGS-getnssent_r.c) (CFLAGS-getent.c): Same. * string/Makefile (CFLAGS-strerror_l.c): Same. * iconv/Makefile (CFLAGS-gconv_db.c, CFLAGS-gconv_trans.c) (CFLAGS-iconv_prog.c): Same. * locale/Makefile (CFLAGS-C-ctype.c, CFLAGS-xlocale.c) (CFLAGS-ld-messages.c): Same. * argp/Makefile (CFLAGS-argp-help.c, CFLAGS-argp-fmtstream.c): Same. * nptl/Makefile (CFLAGS-pthread_create.c): Same. * posix/Makefile (CFLAGS-glob.c, CFLAGS-bug-regex1.c): Same. * stdio-common/Makefile (CFLAGS-printf_fp.c) (CFLAGS-printf_fphex.c, CFLAGS-fxprintf.c, CFLAGS-tst-popen.c): Same. * libidn/Makefile (CFLAGS-toutf8.c): Same. * debug/segfault.c, wcsmbs/wcsmbsload.c, time/strftime_l.c: * time/strptime_l.c, intl/dcigettext.c: * sysdeps/unix/sysv/linux/libc_fatal.c: * sysdeps/unix/sysv/linux/gethostid.c, misc/err.c, misc/error.c: * nss/getnssent_r.c, nss/nsswitch.c, nss/getent.c: * string/strerror_l.c, iconv/gconv_db.c, iconv/iconv_prog.c: * iconv/gconv_trans.c, locale/xlocale.c, locale/C-ctype.c: * locale/programs/ld-messages.c, argp/argp-help.c: * argp/argp-fmtstream.c, nptl/pthread_create.c, posix/glob.c: * posix/bug-regex1.c, stdio-common/printf_fp.c: * stdio-common/printf_fphex.c, stdio-common/tst-popen.c: * stdio-common/fxprintf.c, libidn/toutf8.c: #include <gnu/option-groups.h>, and test for the symbols that #defines, instead. git-svn-id: svn://svn.eglibc.org/trunk@4026 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-10-28Merge changes between r3903 and r3996 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@3997 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-10-15Merge changes between r3777 and r3809 from /fsf/trunk.jimb
git-svn-id: svn://svn.eglibc.org/trunk@3819 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-09-25Merge changes between r3467 and r3614 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@3615 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-09-12Merge changes between r2424 and r3467 from /fsf/trunk.joseph
git-svn-id: svn://svn.eglibc.org/trunk@3468 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-06-13 * intl/plural.c: Regenerate.joseph
git-svn-id: svn://svn.eglibc.org/trunk@2505 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-05-29 Add the OPTION_EGLIBC_LOCALE_CODE option group.jimb
* option-groups.def (OPTION_EGLIBC_LOCALE_CODE): New entry. * option-groups.defaults (OPTION_EGLIBC_LOCALE_CODE): Initialize. * Makerules (test-srcs): Add in value of test-srcs-y. (static-only-routines): Add in value of static-only-routines-y. * stdlib/Makefile: Include ../option-groups.mak. (routines): Move rpmatch, strfmon, and strfmon_l into the group. (tests): Move tst-strtod3 into the group. * wcsmbs/Makefile: Include ../option-groups.mak. (tests): Move tst-btowc, tst-mbrtowc, tst-mbrtowc2, and tst-wcrtomb into the option group. (CFLAGS-wcsmbsload.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): If the group is not enabled, simply abort. * time/Makefile: Include ../option-groups.mak. (aux): Move alt_digit, era, and lc-time-cleanup into the group. (tests): Move tst-strptime into the group. (CFLAGS-strftime_l.c, CFLAGS-strptime_l.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * time/strftime_l.c, time/strptime_l.c: Support eras and custom digits only when the group is enabled. * libio/Makefile (tests): Move tst-swscanf into the group. * intl/Makefile (CFLAGS-dcigettext.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * intl/dcigettext.c (DCIGETTEXT): If the group is not enabled, assume the "C" locale. * string/Makefile: Include ../option-groups.mak. (tests): Move tst-strxfrm and bug-strcoll1 into the option group. (CFLAGS-strerror_l.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * string/strerror_l.c (translate): Don't translate unless the group is enabled. * iconv/Makefile: Include ../option-groups.mak. (CFLAGS-gconv_db.c, CFLAGS-iconv_prog.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * iconv/gconv_db.c (libc_freeres_fn): If group is disabled, no need to free locale memory first. * iconv/iconv_prog.c (main): If the group is disabled, the default codeset is always ASCII. * locale/Makefile: Include ../option-groups.mak. (distribute): Mention new dummy-setlocale.c. (routines): Include mb_cur_max and the new catnames unconditionally; put setlocale, findlocale, loadlocale, loadarchive, localeconv, nl_langinfo, nl_langinfo_l, newlocale, duplocale, freelocale, and uselocale in the group. If the group is disabled, use dummy-setlocale. (tests): Put tst-C-locale in the group. (aux): Move all C categories other than C-ctype and C-time into the group, along with all the load-locale routines, and localename. (others, install-bin, extra-objs): Put localedef and locale in the group. (extra-libs, extra-libs-other): Put libBrokenLocale in the group. (CFLAGS-xlocale.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * locale/xlocale.c: If the group is disabled, make the references here to the omitted category data weak. Furthermore, in the NL_CURRENT_INDIRECT case, define the _nl_current_##CATEGORY variables here. * locale/setlocale.c (_nl_category_names, _nl_category_name_idxs) (_nl_category_name_sizes): Move these from here... * locale/catnames.c: ... to here. New file. * locale/dummy-setlocale.c: New file. * intl/Makefile: Include ../option-groups.mak. (tests): Move tst-translit, tst-gettext2, tst-codeset, tst-gettext3, tst-gettext4, tst-gettext5, and mtrace-tst-gettext into the OPTION_EGLIBC_LOCALES option group. * localedata/Makefile (tests): Move all tests into the OPTION_EGLIBC_LOCALES group. * posix/Makefile (tests): Move tst-fnmatch, tst-regex, tst-regexloc, bug-regex1, bug-regex5, bug-regex19, bug-regex22, and bug-regex25 into the group. * stdio-common/Makefile: Include ../option-groups.mak. (tests): Move tst-sscanf, tst-swprintf, bug15, and test-vfprintf into the option group. (CFLAGS-printf_fp.c, CFLAGS-printf_fphex.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * stdio-common/printf_fp.c (__printf_fp): Hard-code values from the 'C' locale. * stdio-common/printf_fphex.c (__printf_fphex): Same. * libidn/Makefile: Include ../option-groups.mak. (CFLAGS-toutf8.c): Define OPTION_EGLIBC_LOCALE_CODE as appropriate. * libidn/toutf8.c (stringprep_locale_charset): If the group is disabled, assume ASCII. git-svn-id: svn://svn.eglibc.org/trunk@2333 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2007-02-06 Add support for cross-testing.jimb
Remove Make conditionals that disable running tests or generating test input files when cross-compiling. * Rules: Disable conditionals. * stdlib/Makefile: Same. * libio/Makefile: Same. * intl/Makefile: Same. * iconvdata/Makefile: Same. * localedata/Makefile: Same. * catgets/Makefile: Same. * misc/Makefile: Same. * posix/Makefile: Same. * string/Makefile: Same. * stdio-common/Makefile: Same. * resolv/Makefile: Same. * iconv/Makefile: Same. * grp/Makefile: Same. * elf/Makefile: Same. * malloc/Makefile: Same. * io/Makefile: Same. Where tests run binaries, have them use cross-test-wrapper, if set. * Makeconfig (run-program-prefix): Split this into two pieces: (run-via-rtld-prefix): Prefix to run something via the dynamic linker. (run-program-prefix): Prefix to run something via the cross-testing wrapper and the dynamic linker. (built-program-command): Run the rule's second dependency, using the cross-test-wrapper and dynamic linker. (local-built-program-cmd): Like built-program-command, but don't use cross-test-wrapper. * intl/Makefile: Pass cross-test-wrapper to scripts. * intl/tst-codeset.sh, intl/tst-gettext.sh, intl/tst-gettext2.sh: * intl/tst-gettext3.sh, intl/tst-translit.sh: Expect and use wrapper. * iconvdata/Makefile: Pass cross-test-wrapper to scripts. * iconvdata/run-iconv-test.sh, iconvdata/tst-table.sh: * iconvdata/tst-tables.sh: Expect and use wrapper. * posix/Makefile: Pass cross-test-wrapper to scripts. Pass local-built-program-command to tests which run subprograms. * posix/tst-getconf.sh, posix/globtest.sh: * posix/workexp-tst.sh: Expect and use wrapper. * grp/Makefile: Pass cross-test-wrapper to scripts. * grp/tst-fgetgrent.sh: Expect and use wrapper. * elf/Makefile: Pass cross-test-wrapper to scripts. Use cross-test-wrapper to run binaries. Pass local-built-program-command to tests which run subprograms. * elf/tst-pathopt.sh: Expect and use wrapper. * malloc/Makefile: Pass cross-test-wrapper to scripts. * malloc/tst-mtrace.sh: Expect and use wrapper. * io/Makefile: Pass cross-test-wrapper to scripts. * io/ftwtest-sh: Expect and use wrapper. * nptl/Makefile: Pass cross-test-wrapper to scripts. Pass local-built-program-command to tests which run subprograms. * nptl/tst-tls6.sh: Expect and use wrapper. * rt/makefile (tst-mqueue7-ARGS): Pass local-built-program-command. Make sure cross-testing wrappers don't steal input from test script loops. * iconvdata/run-iconv-test.sh: Use non-stdin file descriptor for while loop input. * iconvdata/tst-tables.sh: Redirect loop body input from /dev/null. * localedata/tst-rpmatch.sh, localedata/tst-fmon.sh: Same. * localedata/tst-numeric.sh: Same. * posix/tst-getconf.sh: Same. * localedata/tst-wctype.sh: Take the command to run as an argument, as passed by the Makefile, not run_program_prefix. * io/Makefile ($(objpfx)/ftwtest.out): If cross-testing, use build tree for temporary directory. * localedata/Makefile ($(addprefix $(objpfx),$(CTYPE_FILES))): Use cross-localedef program, if specified. * scripts/cross-test-ssh.sh: New file: sample cross-test wrapper. git-svn-id: svn://svn.eglibc.org/trunk@1386 7b3dc134-2b1b-0410-93df-9e9f96275f8d
2006-08-17Import glibc-mainline for 2006-08-16gcc
git-svn-id: svn://svn.eglibc.org/fsf/trunk@4 7b3dc134-2b1b-0410-93df-9e9f96275f8d