]> git.ipfire.org Git - thirdparty/glibc.git/commit - locale/findlocale.c
BZ #15969: search locale archive again after alias expansion
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 18 Nov 2014 00:00:58 +0000 (22:00 -0200)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 26 Feb 2015 05:16:51 +0000 (02:16 -0300)
commit0d822a016b631aef409df5805f58962fe5bbcdc5
treefa1265412059d2b5f06ed1de2f5637e346a90866
parentca681b7b7b79bea3af62fe709df6594f3f5457e6
BZ #15969: search locale archive again after alias expansion

If a locale alias is defined in locale.alias but not in an archive,
and the referenced locale is only present in the archive, setlocale
will fail if given the alias name.  This is unintuitive.  This patch
fixes it, arranging for the locale archive to be searched again after
alias expansion.

for  ChangeLog

[BZ #15969]
* locale/findlocale.c (_nl_find_locale): Retry archive search
after alias expansion.
ChangeLog
NEWS
locale/findlocale.c