about summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
...
* getnameinfo: Refactor and fix memory leak [BZ #19642]Florian Weimer2016-04-292-240/+357
| | | | | Split getnameinfo into separate functions for host and service lookups, and for different address families.
* powerpc: Zero pad using memset in strncpy/stpncpyGabriel F. T. Gomes2016-04-292-67/+61
| | | | | | | Call __memset_power8 to pad, with zeros, the remaining bytes in the dest string on __strncpy_power8 and __stpncpy_power8. This improves performance when n is larger than the input string, giving ~30% gain for larger strings without impacting much shorter strings.
* NEWS entry for CVE-2016-3075Florian Weimer2016-04-291-0/+4
|
* CVE-2016-3706: getaddrinfo: stack overflow in hostent conversion [BZ #20010]Florian Weimer2016-04-293-62/+83
| | | | | | | | | | When converting a struct hostent response to struct gaih_addrtuple, the gethosts macro (which is called from gaih_inet) used alloca, without malloc fallback for large responses. This commit changes this code to use calloc unconditionally. This commit also consolidated a second hostent-to-gaih_addrtuple conversion loop (in gaih_inet) to use the new conversion function.
* glob: Simplify the interface for the GLOB_ALTDIRFUNC callback gl_readdirFlorian Weimer2016-04-296-24/+100
| | | | | | | | | | | | Previously, application code had to set up the d_namlen member if the target supported it, involving conditional compilation. After this change, glob will use the length of the string in d_name instead of d_namlen to determine the file name length. All glibc targets provide the d_type and d_ino members, and setting them as needed for gl_readdir is straightforward. Changing the behavior with regards to d_ino is left to a future cleanup.
* Fix stdio.h namespace for pre-threads POSIX (bug 20014).Joseph Myers2016-04-283-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | stdio.h declares flockfile, ftrylockfile, funlockfile, getc_unlocked, getchar_unlocked, putc_unlocked and putchar_unlocked if __USE_POSIX, with comments "These are defined in POSIX.1:1996.". But __USE_POSIX is actually POSIX.1:1990, and these functions should not be declared for 1990 / 1992 / 1993 POSIX, XPG3 or XPG4. This patch fixes stdio.h to use __USE_POSIX199506 instead for those conditionals, as that is the correct conditional for the version of POSIX that introduced threads, and with threads those functions. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #20014] * libio/stdio.h (getc_unlocked): Declare if [__USE_POSIX199506], not [__USE_POSIX]. (getchar_unlocked): Likewise. (putc_unlocked): Likewise. (putchar_unlocked): Likewise. (flockfile): Likewise. (ftrylockfile): Likewise. (funlockfile): Likewise. * conform/Makefile (test-xfail-XPG3/stdio.h/conform): Remove variable. (test-xfail-XPG4/stdio.h/conform): Likewise.
* conformtest: Add langinfo.h expectations for YESSTR, NOSTR.Joseph Myers2016-04-283-3/+13
| | | | | | | | | | | | | | | | | The conformtest expectations for langinfo.h fail to include the YESSTR and NOSTR constants that were present in UNIX98 and earlier XPG standards. This patch adds those expectations, so fixing three XFAILs. Tested for x86_64 and x86. * conform/data/langinfo.h-data [XPG3 || XPG4 || UNIX98] (YESSTR): Expect constant. [XPG3 || XPG4 || UNIX98] (NOSTR): Likewise. * conform/Makefile (test-xfail-XPG3/langinfo.h/conform): Remove variable. (test-xfail-XPG4/langinfo.h/conform): Likewise. (test-xfail-UNIX98/langinfo.h/conform): Likewise.
* Also define off_t in stdio.h for UNIX98.Joseph Myers2016-04-283-2/+8
| | | | | | | | | | | | | | | | | | Similar to my previous fix for XOPEN2K <https://sourceware.org/ml/libc-alpha/2016-04/msg00631.html>, now that bugs in the conformtest expectations for stdio.h for UNIX98 have been corrected, that case too fails because fseeko and ftello are now correctly expected, but off_t is not defined. As in that fix, it seems appropriate to define off_t in stdio.h for this standard as well, and this patch does so. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). * libio/stdio.h (off_t): Also define if [__USE_UNIX98]. [__USE_LARGEFILE64] (off64_t): Likewise. * conform/Makefile (test-xfail-UNIX98/stdio.h/conform): Remove variable.
* getnameinfo: Do not preserve errnoFlorian Weimer2016-04-282-10/+6
| | | | | | POSIX does not require it, the companion getaddrinfo implementation does not do it, and this behavior is not documented in the manual page, either.
* resolv: Reindent preprocessor conditionals following cleanupsFlorian Weimer2016-04-284-12/+18
|
* resolv: Assorted preprocessor cleanupsFlorian Weimer2016-04-283-39/+12
|
* resolv: Remove SUNSECURITY preprocessor conditionalsFlorian Weimer2016-04-283-37/+6
| | | | The macro is never defined.
* resolv: Remove BSD compatibility conditionals and headerFlorian Weimer2016-04-284-84/+10
|
* resolv: Remove __BIND_NOSTATIC conditionalsFlorian Weimer2016-04-283-4/+5
| | | | The macro is never defined.
* resolv: Remove traces of ULTRIX supportFlorian Weimer2016-04-283-19/+5
|
* resolv: Remove RFC1535 conditionalsFlorian Weimer2016-04-283-31/+8
|
* resolv: Remove RESOLVSORT preprocess conditionalsFlorian Weimer2016-04-284-23/+7
|
* resolv: Remove BIND_UPDATE preprocessor conditionalsFlorian Weimer2016-04-282-36/+5
|
* inet: Remove SCCS keywordsFlorian Weimer2016-04-288-29/+10
|
* resolv: Remove _LIBC conditionalsFlorian Weimer2016-04-287-140/+13
|
* resolv: Remove SCCS and RCS keywordsFlorian Weimer2016-04-2824-100/+26
|
* Fix ChangeLog date to reflect commit dateFlorian Weimer2016-04-281-1/+1
|
* conformtest: Correct stdio.h expectations for fdopen.Joseph Myers2016-04-272-1/+4
| | | | | | | | | | | The conform/ test of stdio.h wrongly does not expect fdopen for XPG3 and XPG4. fdopen is in those standards; this patch corrects the expectations. Tested for x86_64 and x86. * conform/data/stdio.h-data (fdopen): Expect also for [XPG3 || XPG4].
* conformtest: Correct some stdio.h expectations for UNIX98.Joseph Myers2016-04-272-6/+18
| | | | | | | | | | | | | | | | | | | | | The conform/ test of stdio.h for UNIX98 fails with surious namespace errors for functions that are correctly declared for that standard. This patch fixes the expectations to expect those functions also for UNIX98. (This does not by itself fix the XFAIL of that test, and is not based a full review of the header expectations so there could still be other bugs in the expectations for this header for UNIX98.) Tested for x86_64 and x86. * conform/data/stdio.h-data (flockfile): Also expect for [UNIX98]. (fseeko): Likewise. (ftello): Likewise. (ftrylockfile): Likewise. (funlockfile): Likewise. (getc_unlocked): Likewise. (getchar_unlocked): Likewise. (putc_unlocked): Likewise. (putchar_unlocked): Likewise.
* nss_dns: Skip over non-PTR records in the netent code [BZ #19868]Florian Weimer2016-04-272-2/+25
| | | | | This requires additional checks for the RDATA length and the availability of record metadata.
* nss_dns: Remove custom offsetof macro definitionFlorian Weimer2016-04-272-3/+6
|
* nss_dns: Check address length before creating addrinfo result [BZ #19831]Florian Weimer2016-04-272-20/+47
| | | | | | | | | Previously, we allocated room in the result space before the check, leaving uninitialized data there in case the check failed. This also consolidates the behavior between single (A or AAAA) and dual (A and AAAA in parallel) queries. Single queries checked the record length against the QTYPE, not the RRTYPE.
* resolv, nss_dns: Remove remaining syslog logging [BZ #19862]Florian Weimer2016-04-273-42/+10
| | | | The fix for bug 14841 only removed part of the logging.
* conformtest: Correct some signal.h expectations for XOPEN2K.Joseph Myers2016-04-273-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | The conformtest expectations for signal.h have various declarations that are expected for POSIX (1996) and all later standards, except, wrongly, for XOPEN2K. This shows up as failures of tests for two other headers, which are allowed to make visible symbols from signal.h, because of an incorrect namespace failure for sigval (required in signal.h in XOPEN2K, so should be allowed for those other headers); signal.h tests for various standards fail anyway because of other problems in the header. This patch fixes the incorrect expectations and removes the two XFAILs that this fixes. Tested for x86_64 and x86. * conform/data/signal.h-data (union sigval): Expect also if [XOPEN2K]. (struct sigevent): Likewise. (SIGEV_NONE): Likewise. (SIGEV_SIGNAL): Likewise. (SIGEV_THREAD): Likewise. (SIGRTMIN): Likewise. (SIGRTMAX): Likewise. * conform/Makefile (test-xfail-XOPEN2K/aio.h/conform): Remove variable. (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
* nss_dns: Validate RDATA length against packet length [BZ #19830]Florian Weimer2016-04-273-3/+36
| | | | | In _nss_dns_getcanonname_r, a check for the availability of RR metadata was missing as well.
* resolv: Always set *resplen2 out parameter in send_vc [BZ #19825]Florian Weimer2016-04-272-21/+25
| | | | | | | In various error scenarios (for example, if the server closes the TCP connection before sending the full response), send_vc can return without resetting the *resplen2 value. This can pass uninitialized or unexpected data to the caller.
* Add missing iucv related defines.Stefan Liebler2016-04-272-0/+16
| | | | | | | | | | | this patch adds the missing SOL_IUCV socket level definition and socket options SO_IPRMDATA_MSG, SO_MSGLIMIT, SO_MSGSIZE which can be used with get/setsockopt(). SCM_IUCV_TRGCLS is needed to send/receive ancillary data with send/recvmsg(). The defines are copied from kernel-source: include/net/iucv/af_iucv.h include/linux/socket.h
* localedata: add more translit entriesMike Frysinger2016-04-274-0/+23
| | | | | | | | | | | | | | Some of the newer symbols we're using are missing translit entries which causes troubles when generating the locales with older encodings. tr_TR: ₺ -> "TL" uz_UZ: ʻ -> "'" common: ֏ -> "AMD" ₪ -> "ILS" ₱ -> "PHP" ₸ -> "KZT" ₾ -> "GEL"
* libio: Update internal fmemopen position after write (BZ #20005)Adhemerval Zanella2016-04-264-4/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current GLIBC fmemopen fails with a simple testcase: char buffer[500] = "x"; FILE *stream; stream = fmemopen(buffer, 500, "r+"); fwrite("fish",sizeof(char),5,stream); printf("pos-1:%ld\n",ftell(stream)); fflush(stream); printf("pos-2:%ld\n",ftell(stream)); It returns: pos-1:5 pos-2:0 Where it should return: pos-1:5 pos-2:5 This is due the internal write function does not correctly update the internal object position state and then the seek operation returns a wrong value. This patch fixes it. It fixes both BZ #20005 and BZ #19230 (marked as duplicated). A new test is added to check for such case. Tested on x86_64 and i686. * libio/fmemopen.c (fmemopen_write): Update internal position after write. * stdio-common/Makefile (tests): Add tst-fmemopen4.c. * stdio-common/tst-fmemopen4.c: New file..
* Fix langinfo.h nl_langinfo_l namespace (bug 19996).Joseph Myers2016-04-263-2/+7
| | | | | | | | | | | | | | | langinfo.h declares nl_langinfo_l if __USE_XOPEN2K. But this function was new in the 2008 edition of POSIX. This patch fixes the condition accordingly. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #19996] * locale/langinfo.h (nl_langinfo_l): Declare if [__USE_XOPEN2K8], not [__USE_XOPEN2K]. * conform/Makefile (test-xfail-XOPEN2K/langinfo.h/conform): Remove variable.
* conformtest: Correct XOPEN2K stdarg.h expectations.Joseph Myers2016-04-263-2/+5
| | | | | | | | | | | | The conform/ test expectations for stdarg.h were wrongly missing an expectation of va_copy for XOPEN2K (based on C99, so including that macro). This patch fixes this. Tested for x86_64 and x86. * conform/data/stdarg.h-data [XOPEN2K] (va_copy): Require macro. * conform/Makefile (test-xfail-XOPEN2K/stdarg.h/conform): Remove variable.
* Define off_t in stdio.h for XOPEN2K.Joseph Myers2016-04-263-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | The header conformance test for stdio.h for XOPEN2K fails because the header does not define the off_t type, used in the expected declarations for fseeko and ftello. The absence of this type is not actually strictly a bug (hence no bug report being filed in Bugzilla), since POSIX didn't require the type to be declared in this header until the 2008 edition. However, the glibc convention in such cases - where the type falls under the general *_t POSIX reservation, and so it's OK to define it for all POSIX versions - is to make the headers self-contained in this regard even for the older POSIX versions not requiring the type to be defined despite including other declarations depending on the type. Thus, this patch adjusts the condition in the header and removes the XFAIL (rather than adapting the expectation to work when the functions are declared using __off_t without off_t being defined). Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). * libio/stdio.h (off_t): Define if [__USE_XOPEN2K], not [__USE_XOPEN2K8]. [__USE_LARGEFILE64] (off64_t): Likewise. * conform/Makefile (test-xfail-XOPEN2K/stdio.h/conform): Remove variable.
* Fix stdio.h cuserid namespace (bug 19989).Joseph Myers2016-04-253-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stdio.h declares cuserid if __USE_XOPEN. But this was removed in the 2001 edition of POSIX. The #endif comment "Use X/Open, but not issue 6." reflects the correct logic, but does not correspond to the #ifdef. The use of a correct libc-hacker. The online archives for libc-hacker in August 2000 are broken, but the messages can be found in the qmail archives in /sourceware1/qmail/lists-sourceware/libc-hacker/archive/26 if you have shell access to sourceware. The issue showed up in August 2000 because of a warning about a non-prototype definition in sysdeps/posix/cuserid.c when there was no previous prototype declaration. Since we've now eliminated non-prototype function definitions, that issue does not apply. The other points from that discussion were about whether it should be included in _GNU_SOURCE; whether _GNU_SOURCE should include "everything"; whether deprecated interfaces such as this should be excluded from it; and whether, even given exclusion of deprecated interfaces, it should apply for deprecations in a version of POSIX that at that time had not been released. This patch follows the more conservative approach to a fix of keeping the interface in _GNU_SOURCE. That matches how L_cuserid is handled. I think there is a strong case for eliminating this interface from _GNU_SOURCE (but this may not automatically be the case for every interface removed in newer POSIX versions), but then L_cuserid should also be removed from _GNU_SOURCE (in stdio-common/stdio_lim.h.in) at the same time. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). [BZ #19989] * libio/stdio.h (cuserid): Do not declare if [__USE_XOPEN2K && !__USE_GNU]. * conform/Makefile (test-xfail-XOPEN2K8/stdio.h/conform): Remove variable.
* powerpc: Add optimized strcspn for P8Paul E. Murphy2016-04-259-29/+176
| | | | | A few minor adjustments to the P8 strspn gives us an almost equally optimized P8 strcspn.
* vfprintf: Fix memory with large width and precision [BZ #19931]Florian Weimer2016-04-254-5/+134
| | | | Free a previously allocated work buffer if it is not large enough.
* Fix stdlib/tst-makecontext regression for Nios IIChung-Lin Tang2016-04-252-0/+17
|
* non-linux: Apply RFC3542 obsoletion of RFC2292 macrosSamuel Thibault2016-04-242-2/+16
| | | | | | | (IPV6_RECVHOPLIMIT, IPV6_HOPLIMIT, IPV6_RECVHOPOPTS, IPV6_HOPOPTS, IPV6_RTHDRDSTOPTS, IPV6_RECVRTHDR, IPV6_RTHDR, IPV6_RECVDSTOPTS, IPV6_DSTOPTS, IPV6_RECVPATHMTU, IPV6_PATHMTU, IPV6_DONTFRAG): New macros.
* non-linux: Apply RFC3542 obsoletion of RFC2292 macrosSamuel Thibault2016-04-242-11/+30
| | | | | | | | | | | | | | | RFC2292 macros were obsoleted by RFC3542, and should not be exposed any more. Notably since IPV6_PKTINFO has been reintroduced with a completely different API. * bits/in.h (IPV6_PKTINFO): Rename to IPV6_2292PKTINFO. (IPV6_HOPOPTS): Rename to IPV6_2292HOPOPTS. (IPV6_DSTOPTS): Rename to IPV6_2292DSTOPTS. (IPV6_RTHDR): Rename to IPV6_2292RTHDR. (IPV6_PKTOPTIONS): Rename to IPV6_2292PKTOPTIONS. (IPV6_HOPLIMIT): Rename to IPV6_2292HOPLIMIT. (IPV6_RECVPKTINFO): New macro. (IPV6_PKTINFO): New macro.
* tst-fmon/tst-numeric: switch malloc to static stack space [BZ #19671]Mike Frysinger2016-04-233-4/+11
| | | | | | | | The current test code doesn't check the return value of malloc. This should rarely (if ever) cause a problem, but rather than add some return value checks, just statically allocate the buffer on the stack. This will never fail (or if it does, we've got much bigger problems that don't matter to the test).
* tst-langinfo: update yesexpr/noexpr baselinesMike Frysinger2016-04-232-12/+17
|
* Reduce number of mmap calls from __libc_memalign in ld.soH.J. Lu2016-04-232-7/+9
| | | | | | | | | | | | | | | | | __libc_memalign in ld.so allocates one page at a time and tries to optimize consecutive __libc_memalign calls by hoping that the next mmap is after the current memory allocation. However, the kernel hands out mmap addresses in top-down order, so this optimization in practice never happens, with the result that we have more mmap calls and waste a bunch of space for each __libc_memalign. This change makes __libc_memalign to mmap one page extra. Worst case, the kernel never puts a backing page behind it, but best case it allows __libc_memalign to operate much much better. For elf/tst-align --direct, it reduces number of mmap calls from 12 to 9. * elf/dl-minimal.c (__libc_memalign): Mmap one extra page.
* localedata: CLDRv29: update LC_MESSAGES yes/no strings [BZ #15264] [BZ #16975]Mike Frysinger2016-04-2390-42/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The yes/no strings should be based on the dictionary words. That means they are capitalized based on the dictionary rather than position in the sentence (e.g. the first word). bo_CN: nostr: changing མེན to མིན། bo_CN: yesstr: changing ཨིན to ཡིན། dz_BT: nostr: changing མེན to མེན་ dz_BT: yesstr: changing ཨིན to ཨིན་ en_CA: yesstr: changing Yes to yes en_CA: nostr: changing No to no en_US: yesstr: changing Yes to yes en_US: nostr: changing No to no es_ES: nostr: changing No to no es_ES: yesstr: changing Si to sí fi_FI: nostr: changing Ei to ei fi_FI: yesstr: changing Kyllä to kyllä ig_NG: yesstr: changing Ee to Eye ko_KR: nostr: changing 아니오 to 아니요 ky_KG: nostr: changing Жок to жок ky_KG: yesstr: changing Ооба to ооба ms_MY: nostr: changing Tidak to tidak ms_MY: yesstr: changing Ya to ya te_IN: nostr: changing కాదు to వద్దు te_IN: yesstr: changing అవను to అవును ur_PK: nostr: changing نهيں to نہیں ur_PK: yesstr: changing بلكل to ہاں uz_UZ: nostr: changing Yo'q to yo‘q uz_UZ: yesstr: changing Ha to ha uz_UZ@cyrillic: nostr: changing Йўқ to йўқ uz_UZ@cyrillic: yesstr: changing Ҳа to ҳа wae_CH: nostr: changing Nei to nei wae_CH: yesstr: changing Ja to ja yo_NG: nostr: changing Bẹ́ẹ̀ kọ́ to Bẹ́ẹ̀kọ́ yo_NG: yesstr: changing Bẹ́ẹ̀ ni to Bẹ́ẹ̀ni Some of the translations were just wrong. el_GR: nostr: changing no to όχι el_GR: yesstr: changing yes to ναι km_KH: nostr: changing no:NO:n:N to ទេ​៖ n km_KH: yesstr: changing yes:YES:y:Y to បាទ/ចាស​៖ y ug_CN: nostr: changing No to ياق ug_CN: yesstr: changing Yes to ھەئە Add missing translations for a number of locales: af_ZA: nostr: setting to nee af_ZA: yesstr: setting to ja am_ET: nostr: setting to አይ am_ET: yesstr: setting to አዎን ast_ES: nostr: setting to non ast_ES: yesstr: setting to sí be_BY: nostr: setting to не be_BY: yesstr: setting to так bem_ZM: nostr: setting to Awe bem_ZM: yesstr: setting to Ee bg_BG: nostr: setting to не bg_BG: yesstr: setting to да brx_IN: nostr: setting to नहीं brx_IN: yesstr: setting to हाँ bs_BA: nostr: setting to ne bs_BA: yesstr: setting to da ca_ES: nostr: setting to no ca_ES: yesstr: setting to sí da_DK: nostr: setting to nej da_DK: yesstr: setting to ja de_DE: nostr: setting to nein de_DE: yesstr: setting to ja en_DK: nostr: setting to yes en_DK: yesstr: setting to no et_EE: nostr: setting to ei et_EE: yesstr: setting to jah eu_ES: nostr: setting to ez eu_ES: yesstr: setting to bai fa_IR: nostr: setting to نه fa_IR: yesstr: setting to بله ff_SN: nostr: setting to Alaa ff_SN: yesstr: setting to Eey fo_FO: nostr: setting to nei fo_FO: yesstr: setting to já fr_BE: nostr: setting to non fr_BE: yesstr: setting to oui fr_CH: nostr: setting to non fr_CH: yesstr: setting to oui fr_FR: nostr: setting to non fr_FR: yesstr: setting to oui fr_LU: nostr: setting to non fr_LU: yesstr: setting to oui fur_IT: nostr: setting to no fur_IT: yesstr: setting to sì fy_DE: nostr: setting to nee fy_DE: yesstr: setting to ja ga_IE: nostr: setting to níl ga_IE: yesstr: setting to tá gd_GB: nostr: setting to chan eil gd_GB: yesstr: setting to tha gl_ES: nostr: setting to non gl_ES: yesstr: setting to si gu_IN: nostr: setting to નહીં gu_IN: yesstr: setting to હા he_IL: nostr: setting to לא he_IL: yesstr: setting to כן hi_IN: nostr: setting to नहीं hi_IN: yesstr: setting to हाँ hr_HR: nostr: setting to ne hr_HR: yesstr: setting to da hu_HU: nostr: setting to nem hu_HU: yesstr: setting to igen id_ID: nostr: setting to tidak id_ID: yesstr: setting to ya is_IS: nostr: setting to nei is_IS: yesstr: setting to já it_CH: nostr: setting to no it_CH: yesstr: setting to sì it_IT: nostr: setting to no it_IT: yesstr: setting to sì ka_GE: nostr: setting to არა ka_GE: yesstr: setting to კი kk_KZ: nostr: setting to жоқ kk_KZ: yesstr: setting to иә kl_GL: nostr: setting to naagga kl_GL: yesstr: setting to aap kn_IN: nostr: setting to ಇಲ್ಲ kn_IN: yesstr: setting to ಹೌದು ko_KR: yesstr: setting to 예 lb_LU: nostr: setting to nee lb_LU: yesstr: setting to jo lg_UG: nostr: setting to Nedda lg_UG: yesstr: setting to Ye lt_LT: nostr: setting to ne lt_LT: yesstr: setting to taip lv_LV: nostr: setting to nē lv_LV: yesstr: setting to jā mg_MG: nostr: setting to Tsia mg_MG: yesstr: setting to Eny mn_MN: nostr: setting to үгүй mn_MN: yesstr: setting to тийм mr_IN: nostr: setting to नाहीःना mr_IN: yesstr: setting to होयःहो mt_MT: nostr: setting to le mt_MT: yesstr: setting to iva nb_NO: nostr: setting to nei nb_NO: yesstr: setting to ja ne_NP: nostr: setting to होइन ne_NP: yesstr: setting to हो nl_NL: nostr: setting to nee nl_NL: yesstr: setting to ja nn_NO: nostr: setting to nei nn_NO: yesstr: setting to ja or_IN: nostr: setting to ନା or_IN: yesstr: setting to ହଁ os_RU: nostr: setting to нӕйы os_RU: yesstr: setting to уойы pa_IN: nostr: setting to ਨਹੀਂ pa_IN: yesstr: setting to ਹਾਂ pl_PL: nostr: setting to nie pl_PL: yesstr: setting to tak pt_BR: nostr: setting to não pt_BR: yesstr: setting to sim pt_PT: nostr: setting to não pt_PT: yesstr: setting to sim ro_RO: nostr: setting to nu ro_RO: yesstr: setting to da ru_RU: nostr: setting to нет ru_RU: yesstr: setting to да ru_UA: nostr: setting to нет ru_UA: yesstr: setting to да se_NO: nostr: setting to ii se_NO: yesstr: setting to jo sl_SI: nostr: setting to ne sl_SI: yesstr: setting to da so_DJ: nostr: setting to maya so_DJ: yesstr: setting to haa so_SO: nostr: setting to maya so_SO: yesstr: setting to haa sq_AL: nostr: setting to jo sq_AL: yesstr: setting to po sr_RS@latin: nostr: setting to ne sr_RS@latin: yesstr: setting to da sr_RS: nostr: setting to не sr_RS: yesstr: setting to да sv_SE: nostr: setting to nej sv_SE: yesstr: setting to ja sw_KE: nostr: setting to Hapana sw_KE: yesstr: setting to Ndiyo yue_HK: nostr: setting to 唔係 yue_HK: yesstr: setting to 係 zu_ZA: nostr: setting to cha zu_ZA: yesstr: setting to yebo
* localedata: LC_MESSAGES.{yes,no}expr: standardize yY/nN [BZ #15262]Mike Frysinger2016-04-237-11/+29
| | | | | | | | | | | | | | | | | The vast majority of languages include yY/nN in their yes/no regexes. Standardize the few that were missing them. ms_MY: noexpr: add nN nan_TW@latin: yesexpr: add yY nan_TW@latin: noexpr: add nN se_NO: noexpr: add nN This also highlighted a few that were incorrectly using yY/nN because they clashed with their localized messages: uz_UZ: yesexpr: change ^[+1YyHh] to ^[+1ҲҳHh] uz_UZ: noexpr: change ^[-0JjNn] to ^[-0ЙйNnYyJj] uz_UZ@cyrillic: yesexpr: change ^[+1ҲҳYy] to ^[+1ҲҳHh] uz_UZ@cyrillic: noexpr: change ^[-0ЙйNn] to [-0ЙйNnYyJj] yo_NG: move nN (short for Bẹ́ẹ̀ni) from noexpr to yesexpr
* localedata: LC_MESSAGES.{yes,no}expr: add +1/-0 to all regexes [BZ #15263]Mike Frysinger2016-04-23190-633/+606
| | | | | | | | | A handful of regexes were allowing +1 for yesexpr and -0 for noexpr, and it's the i18n definition. Standardize all locales by allowing these language-independent values in them. Example change for en_US goes from ^[yY] to ^[+1yY], and from ^[nN] to ^[-0nN].
* localedata: standard LC_MESSAGES string regexes a bitMike Frysinger2016-04-23156-610/+507
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A few locales add .* to the end of regexes, but this isn't necessary. Drop it to simplify things. e.g. It goes from ^[yY].* to ^[yY]. Did it for all these locales for yesexpr & noexpr: aa_ET ak_GH am_ET an_ES ar_EG as_IN ast_ES ayc_PE az_AZ be_BY be_BY@latin bem_ZM ber_DZ ber_MA bg_BG bhb_IN bo_IN br_FR ca_ES ce_RU csb_PL cs_CZ cv_RU cy_GB da_DK de_DE dv_MV dz_BT el_GR en_CA en_DK en_US es_ES et_EE eu_ES fa_IR ff_SN fi_FI fo_FO fr_BE fr_CH fr_FR fr_LU fur_IT fy_DE ga_IE gd_GB gl_ES gv_GB ha_NG he_IL hi_IN hr_HR hsb_DE ht_HT hu_HU ia_FR id_ID ig_NG is_IS it_CH it_IT ka_GE kk_KZ kl_GL kn_IN ks_IN ks_IN@devanagari ku_TR kw_GB ky_KG li_NL lij_IT lt_LT lv_LV mg_MG mhr_RU mi_NZ mk_MK mn_MN my_MM nan_TW@latin nb_NO nds_DE nds_NL ne_NP nhn_MX niu_NU niu_NZ nl_NL nn_NO oc_FR or_IN os_RU pa_IN pa_PK pap_AW pap_CW pl_PL ps_AF pt_BR pt_PT quz_PE raj_IN ro_RO ru_RU ru_UA sa_IN sc_IT sd_IN@devanagari se_NO sk_SK sl_SI so_DJ so_SO sq_AL sv_SE sw_KE szl_PL tcy_IN te_IN tg_TJ the_NP tk_TM ti_ER ti_ET tt_RU tt_RU@iqtelif ug_CN unm_US ur_IN ur_PK uz_UZ uz_UZ@cyrillic vi_VN wa_BE wae_CH wo_SN yi_US yo_NG A few locales were missing ^ anchors, so add them. e.g. It goes from [oOyY].* to ^[oOyY]. fil_PH ik_CA iu_CA Some locales are defining a subset of values when there are fuller ones available (according to the language). Switch them to copy instead. aa_DJ: copy aa_ET en_AU: copy en_US en_GB: copy en_US en_HK: copy en_US en_IN: copy en_US en_NG: copy en_US en_NZ: copy en_US en_PH: copy en_US en_SG: copy en_US en_ZA: copy en_US es_US: copy es_ES li_BE: copy nl_BE