Commit 39e1152e authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

scribo/text/recognition.hh: Restore previous locale.

parent 1a7b4fcf
2011-12-06 Guillaume Lazzara <z@lrde.epita.fr>
* scribo/text/recognition.hh: Restore previous locale.
2011-12-06 Guillaume Lazzara <z@lrde.epita.fr>
Ensure current locale is C while calling Tesseract.
......
......@@ -207,6 +207,9 @@ namespace scribo
delete [] s;
}
// Restore default locale.
setlocale(LC_ALL, "");
trace::exiting("scribo::text::recognition");
}
......@@ -302,6 +305,9 @@ namespace scribo
if (!output_file.empty())
file.close();
// Restore default locale.
setlocale(LC_ALL, "");
trace::exiting("scribo::text::recognition");
}
......
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