The setlocale call fails on RTD