[Fontconfig] fontconfig: Branch 'master'

Raimund Steger rs at mytum.de
Wed Jan 16 16:30:10 PST 2013


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


-- 
Worringer Str 31 Duesseldorf 40211 DE  home: <rs at mytum.de>
+49-179-2981632 icq 16845346           work: <rs at interface-ag.de>


More information about the Fontconfig mailing list