[Fontconfig] Re: Bug in fc-cat with user cache

Mike FABIAN mfabian at suse.de
Wed Jan 11 06:36:44 PST 2006


Mike FABIAN <mfabian at suse.de> さんは書きました:

> Mike FABIAN <mfabian at suse.de> さんは書きました:
>
>>> And "xfd -fa" still crashes for all fonts afterwards:
>>
>> This crash still remains.
>
> Most likely because the file name reported by "fc-list" and
> "fc-match" is wrong now:

[... last directory element was always missing in the full path name ...]

The problem was still there after I updated from CVS today,
the last ChangeLog entry is:

2006-01-10  Patrick Lam  <plam at mit.edu>
	* src/fccache.c (FcDirCacheConsume, FcDirCacheOpen,
			 FcDirCacheValid, FcDirCacheHasCurrentArch,
			 FcDirCacheUnlink, FcDirCacheRead, FcDirCacheConsume):
	* fc-cache/fc-cache.c (main):

	Explicitly add font dirs to config.fontDirs even if they're empty.
	Set current config in fc-cache.c.
	Fix treatment of cache directory as read from cache file; don't
	use string equality to determine if we have the right file,
	use inode equality.

But this doesn't seem to have fixed it either.

I made a small one line patch (attached) which seems to fix the
problem for me. Is this patch correct?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: full-path-problem.patch
Type: text/x-patch
Size: 586 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060111/1334436b/full-path-problem.bin
-------------- next part --------------


-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。


More information about the Fontconfig mailing list