submitted-ldconfig-c-collation
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +0000)
committerAurelien Jarno <aurel32@debian.org>
Fri, 26 Jan 2018 22:35:29 +0000 (22:35 +0000)
Submitted upstream, won't be backported in upstream stable branches.

Gbp-Pq: Topic any
Gbp-Pq: Name submitted-ldconfig-c-collation.diff

elf/ldconfig.c

index 911eff227e094a0524decd1a4b7d773e021c17aa..8780215344000d565af05b00e7ee2c876e296eca 100644 (file)
@@ -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);