Fix #141: Use setlocale to handle localization settings
LANG and friends can specify a path to a localedef file1. This isn't
supported by intl::setlocale
. Instead, use setlocale(3C)
to get the locale. This should allow cmucl to recognize all the possible ways of setting the locale from the environment variables.
-
See section 8.2 which says: "If the locale value begins with a slash, it shall be interpreted as the pathname of a file that was created in the output format used by the localedef utility...."
↩