My system doesn't have langinfo.h and when compiling nano it fails at nano.c. Removing the include to <langinfo.h> lets things compile. Is there a need for <langinfo.h> ?? Reproducible: Always
emerge --info, please. langinfo.h is part of glibc.
I'm using prefix (Gentoo/Alt) so I don't use glibc. But regardless of that, it seems to be a useless include.
(In reply to comment #2) > I'm using prefix (Gentoo/Alt) so I don't use glibc. > > But regardless of that, it seems to be a useless include. > We copy what upstream does. If SpanKY deems this WONTFIX then we will patch it for Gentoo Prefix use..
your system is broken ... nano does use it and the header is required by POSIX: http://www.opengroup.org/onlinepubs/009695399/functions/nl_langinfo.html http://www.opengroup.org/onlinepubs/009695399/basedefs/langinfo.h.html i can probably get upstream to change it so the include only happens when ENABLE_UTF8 is defined, but if you want to use USE=unicode on a system which is not POSIX compliant, that's your problem
I don't use USE=unicode, so it seems adding ENABLE_UTF8 is the right approach.
Created attachment 159939 [details, diff] langinfo patch How about this patch, does it resolve the issue? At least it doesn't break for me.
Yes, that's exactly what vapier suggested in comment #4
good. SpanKY, do you want to apply it in gentoo-x86, or shall I just keep it in Prefix?
I guess adding it to prefix would be good for now.
Ok, added, also filed a "patch" for it https://savannah.gnu.org/patch/index.php?6565 I guess that fixes the issue for us.