locale messes up sprintf, but only in Qt program

Printable View