Skip to content

escape.c: Fix missing nl_langinfo on certain configs

Issam E. Maghni requested to merge iemaghni/procps:fix-nls-gnu-musl into master

With !129 (merged) and this, I am able to build procps on a musl based system.

The issue was that nl_langinfo and CODESET were undefined. This is expected because langinfo.h was included only on certain conditions. So I used the nls.h unconditionally, which provides a fallback if the libc does not support langinfo.h. FYI, musl does support langinfo.h.

Merge request reports