Commit f46deddc authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

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

parent 6412c07f
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> 2011-12-06 Guillaume Lazzara <z@lrde.epita.fr>
Ensure current locale is C while calling Tesseract. Ensure current locale is C while calling Tesseract.
......
...@@ -193,6 +193,9 @@ namespace scribo ...@@ -193,6 +193,9 @@ namespace scribo
delete [] s; delete [] s;
} }
// Restore default locale.
setlocale(LC_ALL, "");
trace::exiting("scribo::text::recognition"); trace::exiting("scribo::text::recognition");
} }
...@@ -268,6 +271,9 @@ namespace scribo ...@@ -268,6 +271,9 @@ namespace scribo
if (!output_file.empty()) if (!output_file.empty())
file.close(); file.close();
// Restore default locale.
setlocale(LC_ALL, "");
trace::exiting("scribo::text::recognition"); trace::exiting("scribo::text::recognition");
} }
......
Markdown is supported
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