Mike FABIAN <mfabian@xxxxxxx> さんは書きました: > Behdad Esfahbod <behdad@xxxxxxxxxx> さんは書きました:>>> fc-cache.patch: I don't think this one is needed anymore.>> Right. Obsolete. Was commented out in our the fontconfig.spec file> and not applied anymore.>>> My testing suggests so at least. Then again, there is no>> documentation as to what it's trying to fix.>> Originally this patch was from my colleague Takashi Iwai (CC:)> his comment was:>> iwai> Hi,> iwai> > iwai> the below patch fixes the segfault of fc-cache invoked with arguments> iwai> of non-existing directory name.>> I remember that we submitted this upstream but it was rejected because> of the use of realpath(). The problem seems to have been solved in a> different way now in fontconfig, fc-cache doesn't crash on non-existing> directories. Therefore the patch was commented out in our .spec file. Something which canonicalizes pathnames would be nice though, ifrealpath() cannot be used, is there another way to do it?Currently fontconfig distinguishes even between directory nameslike /foo/bar and /foo/bar/ and /foo//bar although theyare all the same: mfabian@magellan:~$ rm .fontconfig/*mfabian@magellan:~$ fc-cache -v /usr/share/fonts/truetype/usr/share/fonts/truetype: skipping, existing cache is valid: 972 fonts, 0 dirs/var/cache/fontconfig: not cleaning unwritable cache directory/home/mfabian/.fontconfig: cleaning cache directoryfc-cache: succeededmfabian@magellan:~$ fc-cache -v /usr/share/fonts/truetype//usr/share/fonts/truetype/: caching, new cache contents: 972 fonts, 0 dirs/var/cache/fontconfig: not cleaning unwritable cache directory/home/mfabian/.fontconfig: cleaning cache directoryfc-cache: succeededmfabian@magellan:~$ fc-cache -v /usr/share/fonts//truetype/usr/share/fonts//truetype: caching, new cache contents: 972 fonts, 0 dirs/var/cache/fontconfig: not cleaning unwritable cache directory/home/mfabian/.fontconfig: cleaning cache directoryfc-cache: succeededmfabian@magellan:~$ fc-cache -v /usr/share/fonts//truetype/usr/share/fonts//truetype: skipping, existing cache is valid: 972 fonts, 0 dirs/var/cache/fontconfig: not cleaning unwritable cache directory/home/mfabian/.fontconfig: cleaning cache directoryfc-cache: succeededmfabian@magellan:~$ Probably I kept this fc-cache.patch (but commented outin the fontconfig.spec file) to remind me that it wouldbe nice to canonicalize pathnames. -- Mike FABIAN <mfabian@xxxxxxx> http://www.suse.de/~mfabian睡眠不足はいい仕事の敵だ。I � Unicode_______________________________________________Fontconfig mailing listFontconfig@xxxxxxxxxxxxxxxxxxxxxxxxx://lists.freedesktop.org/mailman/listinfo/fontconfig