Re: fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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")


Worringer Str 31 Duesseldorf 40211 DE  home: <rs@xxxxxxxx>
+49-179-2981632 icq 16845346           work: <rs@xxxxxxxxxxxxxxx>
Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux