[Fontconfig] fontconfig: Branch 'master'
akira at tagoh.org
Wed Feb 6 21:40:06 PST 2013
Hmm, glib ensures that g_get_prgname() returns something as long as
applications uses GOption? IIUC it is different thing between glib and
fontconfig. of course that would be a good idea that it works without
GOption though. anyway, there may be the case in current implementation of
fontconfig that FcGetPrgname() returns NULL. implementing some fallbacks as
much as possible isn't a bad idea IMHO.
On Thu, Feb 7, 2013 at 1:28 PM, Behdad Esfahbod <behdad at behdad.org> wrote:
> On 01/23/2013 08:54 PM, Alan Coopersmith wrote:
> > On 01/23/13 12:24 PM, Behdad Esfahbod wrote:
> >> On 13-01-22 01:17 PM, Alan Coopersmith wrote:
> >>> Yes, getprogname will let you use setprogname to change the reported
> >>> while getexecname always returns the string passed to exec().
> >> Feel like submitting a patch for glib's g_[sg]et_prgname()?
> > To do what? Default to getexecname() if g_set_prgname hasn't been
> > I only see platform specific bits in there  for WIN32 at the moment,
> > for the equivalent functions on BSD or Linux. If you wanted that, I'd
> > it to look more like Mesa's code for finding program names, that handles
> > the different platforms  (though I see now we haven't updated the mesa
> > code to handle having getprogname() on Solaris yet).
> You are of course right. Akira, do we something like Mesa has in
> In glib (if anyone's interested making that happen...)?
> >  http://git.gnome.org/browse/glib/tree/glib/gutils.c#n1059
> > 
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Fontconfig