C version locale fix