Fix crash with LC_ALL=fr@euro. Patch & testing by Cyril Brulebois (KiBi).