GNOME Bugzilla – Bug 788264
[patch] Re-enable locale support with glibc ≥ 2.26
Last modified: 2017-10-08 13:47:47 UTC
Created attachment 360571 [details] locale-support-glibc-2.26.patch Since version 2.26, glibc removed the 'xlocale.h' header (see [1]). Thus when building libxslt, the configure script fails to find it and disables locale support in libxslt entirely. Attached is a patch to only include 'xlocale.h' for versions of glibc below 2.26. The patch also touches configure.in to test for locale support even when 'xlocale.h' is missing. Note that I'm a newbie with the autotools, so it may be that the way I did this is not the Right Way To Do It. Also, as an additional change I'd suggest renaming the macro XSLT_LOCALE_XLOCALE to XSLT_LOCALE_POSIX since it seems that's what it really is (the other choice being WINAPI, and 'xlocale.h' not being always there anymore). [1]: https://sourceware.org/glibc/wiki/Release/2.26#Removal_of_.27xlocale.h.27
Fixed with https://git.gnome.org/browse/libxslt/commit/?id=8b4babb8f742a1a189df4c4569e68eda308df68f Thanks for the report!