[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnubg] bug (Win32): MET does not load
From: |
Nardy Pillards |
Subject: |
Re: [Bug-gnubg] bug (Win32): MET does not load |
Date: |
Fri, 17 Oct 2003 00:49:51 +0200 |
On 16 Oct 2003 at 17:05, Joern Thyssen wrote:
> On Wed, Oct 15, 2003 at 11:58:37PM +0200, Nardy Pillards wrote
> > Win32
> >
> > Since gnubg reads the Install_dir from Registry,
> > the MET is not loaded (or can't be changed) in the Windows builds.
> >
> > This is the message from gnubg:
> >
> > warning: failed to load external entity "met.dtd"
> > Could not load the external subset "met.dtd"
> > XML does not validate!
> > warning: failed to load external entity "met.dtd"
> > Could not load the external subset "met.dtd"
> > XML does not validate!
> > Error reading MET
>
> Can you add the following lines to matchequity.c:
>
> /* debug */
> printf( "dump catalog\n" );
> xmlCatalogDump( stdout );
> printf( "end dump catalog\n" );
> /* end debug */
>
> pc = xmlCatalogResolve ( doc->intSubset->ExternalID,
> doc->intSubset->SystemID );
>
> /* debug */
> fprintf( "resolve '%s'\n", pc );
> /* end debug */
>
> and tell me what it reports, please.
>
> You should hopefully get a line like:
>
> PUBLIC "-//GNU Backgammon//DTD Match Equity Tables//EN"
> "/usr/local/share/gnubg/met/met.dtd"
>
I get:
dump catalog
PUBLIC "-//GNU Backgammon//DTD Match Equity Tables//EN" "met.dtd"
end dump catalog
(and then gnubg crashes)
Changed 'fprintf' to 'printf', then I got:
dump catalog
PUBLIC "-//GNU Backgammon//DTD Match Equity Tables//EN" "met.dtd"
end dump catalog
resolve 'met.dtd'
warning: failed to load external entity "met.dtd"
Could not load the external subset "met.dtd"
XML does not validate!
dump catalog
PUBLIC "-//GNU Backgammon//DTD Match Equity Tables//EN" "met.dtd"
end dump catalog
resolve 'met.dtd'
warning: failed to load external entity "met.dtd"
Could not load the external subset "met.dtd"
XML does not validate!
Error reading MET
> Try adding (substitute with the path returned by xmlCatalogDump):
>
> /* debug */
> fprintf( "resolve '%s'\n", pc );
> /* end debug */
>
> /* more debug */
>
> { FILE *pf;
> if ( ! ( pf = fopen( "/usr/local/share/gnubg/met/met.dtd", "r" ) )
> {
> perror( "open" );
> }
> fclose(pf );
> }
>
> /* end more debug */
Adding these lines: matchequity does not compile.
(bedtime here now)
Nardy
>
> Jørn
>