bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ocrad] Version 0.21-pre2 of GNU Ocrad released


From: Tilman Hausherr
Subject: Re: [Bug-ocrad] Version 0.21-pre2 of GNU Ocrad released
Date: Mon, 22 Nov 2010 22:31:17 +0100

Hello Antonio,

Tests at home with cygwin+gcc (The trial period for VS2010 has run out,
and I'm not yet willing to pay 600Euros for it) look promising. All
error images from august now run fine, the test excel print (that I sent
you) runs fine too. The output for the 6 images I used for the benchmark
is identical.

Then I tested at work with VS2008.

In main.cc I replaced

        defined(__MSVCRT__)
with 
        defined(__MSVCRT__) || defined(_MSC_VER)

because VS2008 doesn't know about __MSVCRT__.

I also replaced

  _setmode( STDIN_FILENO, O_BINARY );
  _setmode( STDOUT_FILENO, O_BINARY );

with 

    setmode( fileno( stdin ), O_BINARY );
    setmode( fileno( stdout ), O_BINARY );

because VS2008 doesn't know about STDIN_FILENO and STDOUT_FILENO.

Finally, I replaced

        else if( ( control.outfile = std::fopen( outfile_name, "wx" ) )
== 0 )


with

#ifdef _MSC_VER //TH
        else if( _access (outfile_name, 0) == 0
                || ( control.outfile = std::fopen( outfile_name, "w" ) )
== 0 )
#else
        else if( ( control.outfile = std::fopen( outfile_name, "wx" ) )
== 0 )
#endif

but I see we've discussed all this before :)

I also made a few tests with a production set to see wether the "useful
output" (words, not the noise output) is identical to "my" previous
version; yes, it is.

Tilman Hausherr

On Sat, 20 Nov 2010 19:23:27 +0100, Antonio Diaz Diaz wrote:

>Changes in this version:
>
>   * Stdin and stdout are now set in binary mode on MSVC and OS2.
>
>   * Some tables with noisy "grey" cells are no more discarded.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]