Incorrect results from BSD level libraries for nl_langinfo and locale C functions