I've a, large Qt/C++ program. It extensively uses a few old routines, which use fscanf() to input float numbers from files.
Now I want to port that program in Ubuntu. I've made a crazy discovery: it seems that fscanf() always wants commas to be decimal separators! I tested this using Qt 5.5 and Gcc 5.5.1, but probably this issue applies to all Gcc's under Ubuntu.
Instead my program assumes that the decimal separator is always dot (which is the standard on all the other compilers/systems I know).
Does anyone know how to tell the compiler that input numbers use dots as decimal separators?