Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
olena
Commits
39e1152e
Commit
39e1152e
authored
Dec 06, 2011
by
Guillaume Lazzara
Browse files
scribo/text/recognition.hh: Restore previous locale.
parent
1a7b4fcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
scribo/ChangeLog
View file @
39e1152e
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.
...
...
scribo/scribo/text/recognition.hh
View file @
39e1152e
...
...
@@ -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"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment