The code seems to be matching against the output of 'locale -a'. This is wrong because it fails to handle locale aliases; it's perfectly legitimate to have either en_GB.utf8 or en_GB.UTF-8 configured, despite what some people think.
The code seems to be matching against the output of 'locale -a'. This is wrong because it fails to handle locale aliases; it's perfectly legitimate to have either en_GB.utf8 or en_GB.UTF-8 configured, despite what some people think.