Fix for issue #8387. Also: Add a new line to /etc/locale.gen if the spec...

...ified locale wasn't listed.