olena-2.0-25-g39e1152 scribo/text/recognition.hh: Restore previous locale.

--- scribo/ChangeLog | 4 ++++ scribo/scribo/text/recognition.hh | 6 ++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/scribo/ChangeLog b/scribo/ChangeLog index a9b71f0..eafcc32 100644 --- a/scribo/ChangeLog +++ b/scribo/ChangeLog @@ -1,5 +1,9 @@ 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. * demo/viewer/main.cc: Move call to setLocale... diff --git a/scribo/scribo/text/recognition.hh b/scribo/scribo/text/recognition.hh index e116d58..4795511 100644 --- a/scribo/scribo/text/recognition.hh +++ b/scribo/scribo/text/recognition.hh @@ -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"); } -- 1.7.2.5
participants (1)
-
Guillaume Lazzara