POSIX locale API for Erlang