Rewritten for new locale system, using locale data files and with <langinfo.h>