Pavel Koshevoy
2012-Aug-25 04:57 UTC
[Fontconfig] X_OK permission is invalid for win32 access(..) calls
Hi, I have run into a fatal error when initializing fontconfig font cache on windows. I''ve tracked down the problem to _access(.., W_OK|X_OK) call(s) in fccache.c According to http://msdn.microsoft.com/en-us/library/1w06ktdy%28v=vs.80%29.aspx 01 permission (X_OK in mingw/cygwin headers) is not a valid parameter, and it causes a fatal error terminating the program. I''ve been able to hack-around this program by re-implementing access(..) in my program and masking out the X_OK (01) bit from the permissions bitmask. However, I would prefer to see this fixed properly at the upstream. Pavel.
Akira TAGOH
2012-Aug-27 07:04 UTC
[Fontconfig] X_OK permission is invalid for win32 access(..) calls
Hi, Thanks for reporting. can you file a bug on https://bugs.freedesktop.org please? On Sat, Aug 25, 2012 at 1:57 PM, Pavel Koshevoy <pkoshevoy at gmail.com> wrote:> Hi, > > I have run into a fatal error when initializing fontconfig font cache on > windows. > I''ve tracked down the problem to _access(.., W_OK|X_OK) call(s) in fccache.c > > According to > http://msdn.microsoft.com/en-us/library/1w06ktdy%28v=vs.80%29.aspx 01 > permission (X_OK in mingw/cygwin headers) is not a valid parameter, and it > causes a fatal error terminating the program. > > I''ve been able to hack-around this program by re-implementing access(..) in > my program and masking out the X_OK (01) bit from the permissions bitmask. > However, I would prefer to see this fixed properly at the upstream. > > Pavel. > > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig-- Akira TAGOH
Pavel Koshevoy
2012-Aug-28 01:04 UTC
[Fontconfig] X_OK permission is invalid for win32 access(..) calls
On 8/27/12 1:04 AM, Akira TAGOH wrote:> Hi, > > Thanks for reporting. can you file a bug on https://bugs.freedesktop.org please?Done, https://bugs.freedesktop.org/show_bug.cgi?id=54138 Thank you, Pavel.> > On Sat, Aug 25, 2012 at 1:57 PM, Pavel Koshevoy <pkoshevoy at gmail.com> wrote: >> Hi, >> >> I have run into a fatal error when initializing fontconfig font cache on >> windows. >> I''ve tracked down the problem to _access(.., W_OK|X_OK) call(s) in fccache.c >> >> According to >> http://msdn.microsoft.com/en-us/library/1w06ktdy%28v=vs.80%29.aspx 01 >> permission (X_OK in mingw/cygwin headers) is not a valid parameter, and it >> causes a fatal error terminating the program. >> >> I''ve been able to hack-around this program by re-implementing access(..) in >> my program and masking out the X_OK (01) bit from the permissions bitmask. >> However, I would prefer to see this fixed properly at the upstream. >> >> Pavel. >> >> _______________________________________________ >> Fontconfig mailing list >> Fontconfig at lists.freedesktop.org >> http://lists.freedesktop.org/mailman/listinfo/fontconfig > >