diff --git a/glibc-rh1184168.patch b/glibc-rh1184168.patch new file mode 100644 index 0000000..92fc6f8 --- /dev/null +++ b/glibc-rh1184168.patch @@ -0,0 +1,45 @@ +commit 333e1ba4e53456a603621274177ae9393b9d5385 +Author: Paul Eggert +Date: Fri May 22 14:57:11 2015 -0700 + + Remove obsolete aliases that broke 'locale -a' + + [BZ #18412] + * intl/locale.alias: Remove obsolete aliases "bokmål" and "français" + which caused 'locale -a' to output Latin-1 data in UTF-8 locales, + breaking some applications that use 'locale -a' output. + Change the encoding of this file from Latin-1 to ASCII to avoid + other potential problems with people grepping this file. + +diff --git a/intl/locale.alias b/intl/locale.alias +index ab1cb7a..fe19e1b 100644 +--- a/intl/locale.alias ++++ b/intl/locale.alias +@@ -24,8 +24,18 @@ + # backward compatibility. Nobody should rely on the names defined here. + # Locales should always be specified by their full name. + ++# Note: This file used to contain the following lines: ++# bokmaal nb_NO.ISO-8859-1 ++# franc,ais fr_FR.ISO-8859-1 ++# except that the "aa" was actually the byte '\0xE5' (the Latin-1 ++# encoding for U+00E5 LATIN SMALL LETTER A WITH RING ABOVE) and the ++# "c," was actually the byte '\xE7' (the Latin-1 encoding for U+00E7 ++# LATIN SMALL LETTER C WITH CEDILLA). These lines were removed ++# because they caused 'locale -a' to output text encoded in Latin-1, ++# which broke applications in UTF-8 locales. See: ++# https://sourceware.org/bugzilla/show_bug.cgi?id=18412 ++ + bokmal nb_NO.ISO-8859-1 +-bokm�l nb_NO.ISO-8859-1 + catalan ca_ES.ISO-8859-1 + croatian hr_HR.ISO-8859-2 + czech cs_CZ.ISO-8859-2 +@@ -36,7 +46,6 @@ dutch nl_NL.ISO-8859-1 + eesti et_EE.ISO-8859-1 + estonian et_EE.ISO-8859-1 + finnish fi_FI.ISO-8859-1 +-fran�ais fr_FR.ISO-8859-1 + french fr_FR.ISO-8859-1 + galego gl_ES.ISO-8859-1 + galician gl_ES.ISO-8859-1 diff --git a/glibc.spec b/glibc.spec index 0bcccbb..c85343e 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,6 +1,6 @@ %define glibcsrcdir glibc-2.21 %define glibcversion 2.21 -%define glibcrelease 9%{?dist} +%define glibcrelease 10%{?dist} # Pre-release tarballs are pulled in from git using a command that is # effectively: # @@ -223,6 +223,8 @@ Patch1001: glibc-rh1191059.patch # BZ #18643 - Missing IPV6_* defines Patch1002: glibc-rh1241061.patch +Patch1003: glibc-rh1184168.patch + ############################################################################## # # Patches submitted, but not yet approved upstream. @@ -594,6 +596,7 @@ package or when debugging this package. %patch1000 -p1 %patch1001 -p1 %patch1002 -p1 +%patch1003 -p1 ############################################################################## # %%prep - Additional prep required... @@ -1766,6 +1769,9 @@ rm -f *.filelist* %endif %changelog +* Fri Feb 5 2016 Florian Weimer - 2.21-10 +- Make locale -a output ASCII-only (#1184168). + * Wed Oct 28 2015 Florian Weimer - 2.21-9 - Prevent malloc arena free list from becoming cyclic. (#1276112)