#2608 validate that locale is valid before starting
Merge pull request #1145 from Jc2k/2608_check_locale

#2608 validate that locale is valid before starting