[EMAIL PROTECTED] wrote:
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.

I didn't add the "b" because there is no difference between text and binary files in POSIX systems. But Microsoft is always ready to annoy me. :)

I'll add the "b" for the next version, but as you say input redirection will probably always fail.

Regards,
Antonio.


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

Reply via email to