From: GNU Libc Maintainers Date: Fri, 26 Jan 2018 22:35:29 +0000 (+0000) Subject: submitted-ldconfig-c-collation X-Git-Tag: archive/raspbian/2.26-6+rpi1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=94bc1fb9156a2d9656c94697f1763a971ccbe4b3;p=glibc.git submitted-ldconfig-c-collation Submitted upstream, won't be backported in upstream stable branches. Gbp-Pq: Topic any Gbp-Pq: Name submitted-ldconfig-c-collation.diff --- diff --git a/elf/ldconfig.c b/elf/ldconfig.c index 911eff227..878021534 100644 --- a/elf/ldconfig.c +++ b/elf/ldconfig.c @@ -1318,6 +1318,10 @@ main (int argc, char **argv) /* Set locale via LC_ALL. */ setlocale (LC_ALL, ""); + /* But keep the C collation. That way `include' directives using + globbing patterns are processed in a locale-independent order. */ + setlocale (LC_COLLATE, "C"); + /* Set the text message domain. */ textdomain (_libc_intl_domainname);