try/except locale setting (for windows :P) and check backend