+2005-11-02 Patrick Lam <plam@mit.edu>
+ * fc-cache/fc-cache.c (scanDirs):
+ * src/fcpat.c (FcValueListSerialize):
+
+ Revert the previous patch and commit the correct patch:
+ I forgot a canonicalization in FcValueListSerialize, so
+ that it would choke on already-serialized input files. Duh!
+
2005-11-02 Patrick Lam <plam@mit.edu>
* fc-cache/fc-cache.c (scanDirs):
if (!FcDirCacheUnlink (dir))
ret++;
- if (!FcDirScan (set, subdirs, 0, FcConfigGetBlanks (config), dir, FcTrue))
- {
- fprintf (stderr, "\"%s\": error scanning\n", dir);
- FcFontSetDestroy (set);
- FcStrSetDestroy (subdirs);
- ret++;
- continue;
- }
-
if (!FcDirSave (set, subdirs, dir))
{
fprintf (stderr, "Can't save cache in \"%s\"\n", dir);
fcvaluelists[bi][fcvaluelist_ptr] = *pi;
new.bank = bank;
new.u.stat = fcvaluelist_ptr++;
+ fcvaluelists[bi][new.u.stat].value = FcValueCanonicalize (&pi->value);
v = &fcvaluelists[bi][new.u.stat].value;
switch (v->type)
{