Bug 6366

Summary: Caching breaks on mingw32 with trailing slashes
Product: fontconfig Reporter: Han-Wen Nienhuys <hanwen>
Component: libraryAssignee: Patrick Lam <plam>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: cyreve
Version: 2.3   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: patch
Make fontconfig compile on mingw, perhaps

Description Han-Wen Nienhuys 2006-03-24 04:43:13 UTC
Hi,

On window32 (with mingw crosscompiler), Fontconfig can't stat a directory if its
name ends in a slash. This breaks FcDirCacheValid(). The attached patch fixes
this, and cleans up the fucntion and its debug output a bit.
Comment 1 Han-Wen Nienhuys 2006-03-24 04:44:27 UTC
Created attachment 5037 [details]
patch
Comment 2 Han-Wen Nienhuys 2006-03-24 04:45:07 UTC
BTW, See you at FISL 2006 !
Comment 3 Patrick Lam 2006-04-04 14:40:39 UTC
Does this still occur in fc-2_4-branch?  If so, can you prepare a patch against
the branch?  I suspect it doesn't, and even if it does, it should be easier to fix.
Comment 4 Han-Wen Nienhuys 2006-04-04 19:13:03 UTC
I can't compile 2.3.94 for mingw. See bug #6494 
Comment 5 Patrick Lam 2006-04-06 15:18:13 UTC
*** Bug 3358 has been marked as a duplicate of this bug. ***
Comment 6 Patrick Lam 2006-04-06 16:05:20 UTC
Created attachment 5207 [details] [review]
Make fontconfig compile on mingw, perhaps

Eliminates uses of mmap and sysconf if they're not defined.  Might make
fontconfig compile on mingw now...
Comment 7 Patrick Lam 2006-04-07 14:43:57 UTC
I've committed something that makes fontconfig compile.  Does it work?
Comment 8 Patrick Lam 2006-04-08 03:39:32 UTC
per dom, fontconfig now appears to work on mingw32.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.