Details

[Home]

Issue of the Implementation # S0598

Brief

The function FcConfigGetCache returns a null pointer

Detailed Description

The description of the function FcConfigGetCache states: "Returns the name of the file used to store per-user font information". But it returns a null pointer, while it should return the name of the cache file.

Problem location(s) in the standard

Fontconfig Developers Reference, Version 2.4.2

Example

    FcConfig        *fc;
    FcChar8         *s;
    
    if (!(fc = FcConfigGetCurrent ()))
    {
        printf ("Could not get current config\n");
    }
    
    s = FcConfigGetCache (fc);
    printf ( "FcConfigGetCache returned %s\n", s );

    /*
     * Returns the name of the file used to store per-user font information
     *      
     * The function returned the null value instead of the file name 
     */

Component

fontconfig 2.4.1 or later

Accepted

freedesktop.org Bugzilla 12991

[Home]