Fix #549 LC_NUMERIC problem