Locale handling enhancements.

* Make sure that generic language locales still set a proper date formatting locale.