[Fontconfig] fontconfig: Branch 'master'

Behdad Esfahbod behdad at behdad.org
Wed Jan 16 19:02:08 PST 2013


Both should be fixed.  Or so I think...

On 13-01-16 06:30 PM, Raimund Steger wrote:
> Akira TAGOH wrote:
>> [...]
>> +#elif defined (HAVE_GETPROGNAME) && defined (HAVE_REALPATH)
>> +    const char *p = getprogname ();
>> +    char resolved_path[PATH_MAX + 1];
>> +
>> +    if (p)
>> +    {
>> +        if (realpath (p, resolved_path) != NULL)
>> +        prgname = FcStrdup (resolved_path);
>> +    }
> 
> This is the absolute path, isn't it:
> 
> 
> bsd1:bin)fc-match -v|grep prgname
>         prgname:
> "/export/dist/FreeBSD-x86/stw/fontconfig-20130116/bin/fc-match"(s)
> 
> 
> On Linux, there's another problem:
> 
> vr2:fontconfig)fc-match -v|grep prgname
>         prgname: "fc-match|¦®¿"(s)
> 
> (according to readlink(2), "readlink() does not append a null byte to buf")
> 
> 
> Raimund
> 
> 

-- 
behdad
http://behdad.org/


More information about the Fontconfig mailing list