XForms: rgb_db.c is broken on FreeBSD systems

From: Angus Leeming (a.leeming@ic.ac.uk)
Date: Fri Jul 19 2002 - 07:27:12 EDT

  • Next message: spl@ncmir.ucsd.edu: "Re: XForms: rgb_db.c is broken on FreeBSD systems"

    # To subscribers of the xforms list from Angus Leeming <a.leeming@ic.ac.uk> :

    On a machine running FreeBSD 4.6 with XFree86 version 4.2.0, rgb.txt is to be
    found at /usr/X11R6/lib/X11/rgb.txt and so is not found by xforms.

    This is the offending piece of code:

    static char *rgbfile[] =
    {
        "/usr/lib/X11/rgb.txt", /* typical */
        "/usr/local/lib/X11/rgb.txt", /* try */
    #if defined(sun) || defined(__sun__)
        "/usr/openwin/lib/rgb.txt", /* Sun */
    #endif
    #ifdef __EMX__
        "/XFree86/lib/X11/rgb.txt", /* OS2 */
    #endif
    #ifdef __VMS
        "SYS$MANAGER:DECW$RGB.DAT", /* vax */
    #endif
        0
    };

    Would you please add another string to /* try */ ?

    The approach seems needlessly fragile. Is there no way to interrogate X11 for
    the location of the rgb.txt file?

    Best regards,
    Angus

    _________________________________________________
    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    http://bob.usuhs.mil/mailserv/xforms.html
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Fri Jul 19 2002 - 07:53:05 EDT