Skip to content

Commit

Permalink
Fix "tesseract.exe not flushing stdout/stderr" (Issue tesseract-ocr#2859
Browse files Browse the repository at this point in the history
) (tesseract-ocr#2865)

* Issue tesseract-ocr#2859 - Fix "tesseract.exe not flushing stdout/stderr"
  • Loading branch information
jkang-eng authored and stweil committed Jan 21, 2020
1 parent 912c997 commit 60248f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ void TessResultRenderer::AppendString(const char* s) {

void TessResultRenderer::AppendData(const char* s, int len) {
if (!tesseract::Serialize(fout_, s, len)) happy_ = false;
fflush(fout_);
}

bool TessResultRenderer::BeginDocumentHandler() {
Expand Down

0 comments on commit 60248f5

Please sign in to comment.