fixed error when opening temporary file
re-enabled locales repository creation