A simple FFI wrapper for the C library setlocale and localeconv functions.