-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
busted in v4: process from file list #665
Comments
Here's a fix. I don't know if 3.0.5 is busted or not (if I had to guess, yes) --- api/baseapi.cpp 2016-12-15 15:28:37.000000000 -0800
+++ api/baseapi.cpp 2017-01-18 15:03:52.000000000 -0800
@@ -1083,7 +1083,15 @@
// Maybe we have a filelist
if (r != 0 || format == IFF_UNKNOWN) {
- STRING s(buf.c_str());
+ STRING s;
+ if (stdInput) {
+ s = buf.c_str();
+ } else {
+ std::ifstream t(filename);
+ std::string u((std::istreambuf_iterator<char>(t)),
+ std::istreambuf_iterator<char>());
+ s = u.c_str();
+ }
return ProcessPagesFileList(NULL, &s, retry_config,
timeout_millisec, renderer,
tesseract_->tessedit_page_number); |
Same error (WARNING! LEAK! ) reported in issue |
thanks! |
zvezdochiot
pushed a commit
to ImageProcessing-ElectronicPublications/tesseract
that referenced
this issue
Mar 28, 2021
zvezdochiot
pushed a commit
to ImageProcessing-ElectronicPublications/tesseract
that referenced
this issue
Mar 28, 2021
zvezdochiot
pushed a commit
to ImageProcessing-ElectronicPublications/tesseract
that referenced
this issue
Mar 28, 2021
zvezdochiot
pushed a commit
to ImageProcessing-ElectronicPublications/tesseract
that referenced
this issue
Mar 28, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
v3.0.4 works, v4.0.0 fails
The text was updated successfully, but these errors were encountered: