[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: |
Joern Thyssen |
Subject: |
Re: [Bug-gnubg] bug (Win32): MET does not load |
Date: |
Thu, 16 Oct 2003 17:05:04 +0000 |
User-agent: |
Mutt/1.4.1i |
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"
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 */
Jørn
pgpWxnCkF7JAb.pgp
Description: PGP signature