#278 Path for catalogs in screem-dtd-db.c

closed-fixed
None
5
2006-12-04
2006-11-15
No

Would it be possible to add a line for Fink catalog path in screem_dtd_load_catalogs, so that it could be easily replaced at compile time with the real prefix?

Something like:

static void screem_dtd_load_catalogs( ScreemDTDDB *db )
{
gchar *paths[] = {
SCREEM_DTD_PATH,
"/etc/sgml",
"@PREFIX@etc/sgml",
"/usr/lib/sgml", /* Debian, RedHat */
"/usr/share/sgml", /* SuSE */
"/usr/share/lib/sgml/locale/C/dtds", /* Solaris, use the
current locale at
runtime? */
NULL, /* replaced with the
users .screem dir at
runtime */
NULL
};

would do it. Or any special configure flag for location of the system catalog.

Discussion

  • David A Knight

    David A Knight - 2006-12-03
    • assigned_to: nobody --> davek
     
  • David A Knight

    David A Knight - 2006-12-03

    Logged In: YES
    user_id=736
    Originator: NO

    Is prefix correct or should it be sysconfdir?

     
  • Anonymous - 2006-12-03

    Logged In: YES
    user_id=552580
    Originator: YES

    Either @sysconfdir@ or @PREFIX@etc
    You're right, @sysconfdir@ would be better.

     
  • Anonymous - 2006-12-04
    • status: open --> closed-fixed
     
  • Anonymous - 2006-12-04

    Logged In: YES
    user_id=552580
    Originator: YES

    Your changes make it work perfectly now. Thanks.

    I close the bug as it is fixed.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks