Commit ba3f990b authored by Pascal Noisette's avatar Pascal Noisette
Browse files

-resolution de prbleme de localisation sous windows : vite marche vite...

-resolution de prbleme de localisation sous windows : vite marche vite maintenant, mais sous windows
parent 9db6ecf2
......@@ -23,9 +23,11 @@ double convert_to_double(const string arg){
}
}
else {
if(setlocale(LC_NUMERIC, "fr_FR.UTF-8") == NULL){
if ( setlocale(LC_NUMERIC, "fr_FR.UTF-8")==NULL && setlocale(LC_NUMERIC, "French") == NULL){
cerr << "The locale fr_FR.UTF-8 is unavailable so the decimal with comma will not be printed" << endl;
}
}
if(sscanf(arg_temp.c_str(), "%lf %d", &value, &useless) == 2) {
return value;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment