In the SpamBayes project (http://www.spambayes.org/) we're starting to use
ocrad as an OCR tool.  It works well on Unix-oid systems, but fails on
Windows.  We tracked it down to the fact that the input files are not opened
in binary mode:

    if( std::strcmp( infile_name, "-" ) == 0 ) infile = stdin;
    else infile = std::fopen( infile_name, "r" );

There should be a "b" in that mode string.  Alas, it's not clear how you can
place stdin in binary mode, so input redirection will probably always fail.

We've built ocrad for Windows using cygwin set up in such a way that the
cygwin runtime isn't needed (probably some static linkage flags - I didn't
perform that step).

-- 
Skip Montanaro - [EMAIL PROTECTED] - http://www.mojam.com/
"The hippies and the hipsters did some great stuff in the sixties,
but the geeks pulled their weight too." -- Billy Bragg


_______________________________________________
Bug-ocrad mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-ocrad

Reply via email to