detect locale support for windows & linux