Implement LC_NUMERIC handling for non-glibc and non-Darwin OS.