bug fix in set_locale + relative unit test