Skip to content

Fix #141: Use setlocale to handle localization settings

Raymond Toy requested to merge issue-141-locale into master

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.

  1. 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...."

Edited by Raymond Toy

Merge request reports