Proper Locale check and set flags