[Fontconfig] Patch: fix for fc-cache with relative path

Patrick Lam plam at MIT.EDU
Sun Jan 8 03:02:12 PST 2006


Frederic Crozat wrote:
> Hi,
> 
> the new cache location code has introduced new bugs in fontconfig :
> -when using fc-cache . in a directory, the string used to generate
> md5sum key is always "./fonts.cache-2" which will collide if the same
> command is run in several directories.
> -a similar problem happen when using : fc-cache /foo/bar and
> fc-cache /foo/bar/ : strings used to generate md5sum are not the same,
> resulting in different cache.

I have a better patch for this issue but can't commit it because my
laptop is about to run out of battery.  Maybe tomorrow.  It uses the
directory paths in the FcConfig data structure to normalize paths.

pat


More information about the Fontconfig mailing list