]> git.wh0rd.org - fontconfig.git/blobdiff - ChangeLog
Fix the underlying cause of the below segfault (must usually call
[fontconfig.git] / ChangeLog
index 0975c223a5a77d2fb08061e142c9fe8f8fae2efc..737db03e887ead14e369f88920646f16c46a92a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,349 @@
+2006-02-18  Patrick Lam  <plam@mit.edu>
+       * fc-cache/fc-cache.c (scanDirs):
+       * src/fccache.c (FcCacheReadDirs):
+       * src/fcdir.c (FcDirScanConfig):
+
+       Fix the underlying cause of the below segfault (must usually
+       call FcDirCacheHasCurrentArch after FcDirCacheValid).
+       
+2006-02-18  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheHasCurrentArch):
+
+       Fix triggering of segfault caused by misreading cache files
+       (reported by fcrozat).
+
+2006-02-17  Patrick Lam  <plam@mit.edu>
+       * src/fcint.h  (FC_CACHE_MAGIC):
+
+       Bump up magic version; we changed the binary format.
+
+2006-02-17  Patrick Lam  <plam@mit.edu>
+       * fc-cat/fc-cat.c (main):
+
+       Enable fc-cat to print out old-style cache info when given a
+       directory name.
+
+2006-02-16  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheHasCurrentArch):
+
+       Deal correctly with changing FC_CACHE_MAGIC.
+
+2006-02-16  Patrick Lam  <plam@mit.edu>
+       * fc-cache/fc-cache.c (usage, scanDirs, main):
+
+       Add -r --really-force option which blows away cache files and then
+       regenerates them.
+
+2006-02-16  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheUnlink, FcCacheCopyOld, FcDirCacheWrite):
+
+       Don't bail if fontconfig can't remove a dir cache file.
+       Skip the ID of a cache file when copying.
+       Eliminate 'source file too small' bug in FcDirCacheWrite.
+
+2006-02-13  Patrick Lam  <plam@mit.edu>
+       * src/fcfreetype.c (FcFreeTypeQuery):
+
+       Fix memory leak in error condition code.
+
+2006-02-13  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       * src/fcfreetype.c (FcFreeTypeQuery):
+
+       Skip bitmap fonts which can't even get it together enough to
+       declare a family name; this appears to reproduce previous
+       fontconfig behaviour.
+
+2006-02-10  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       * src/fccache.c (FcDirCacheOpen):
+
+       Try to open /var/cache/fontconfig/[hashed name] before
+       fonts.cache-2 in a directory, because /var/cache/fontconfig
+       failures ought to be fixable, unlike fonts.cache-2 failures,
+       which may leave you screwed.
+
+2006-02-10  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       * src/fcmatch.c (FcFontSetMatch):
+
+       Use a tri-state to mark the fonts which didn't get blocked but
+       were just missing an element, to distinguish them from the
+       fonts that do match the element.
+
+2006-02-10  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       * src/fcmatch.c (FcFontSetMatch):
+
+       Don't kill fonts because they don't declare an element that's
+       being matched on.
+
+2006-02-09  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave,
+                        FcDirCacheUnlink, FcDirCacheOpen, FcDirCacheWrite):
+
+       Define and pass O_BINARY to open if appropriate, for those
+       platforms that need it.  Reported by Doodle.
+
+2006-02-09  Patrick Lam  <plam@mit.edu>
+       * src/fccharset.c (FcCharSetNeededBytes, FcCharSetSerialize, 
+                          FcCharSetGetLeaf):
+
+       Fix problem with missing 'en' due to euro.patch: change
+       cache file format slightly to coincide with that generated
+       by fc-lang.
+
+2006-02-07  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcCacheReadDirs):
+
+       Fix warning.
+
+2006-02-07  Patrick Lam  <plam@mit.edu>
+       * src/fcdir.c (FcDirScanConfig):
+
+       Don't reject dirs that can't be normalized (fixes lilypond, and
+       is correct in the context of application font directories.)
+
+2006-02-07  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+
+       * src/fccache.c (FcCacheReadDirs):
+
+       Use normalized directory name exclusively in FcCacheReadDirs.
+
+2006-02-07  Dirk Mueller  <dmueller@suse.com>
+       reviewed by: plam
+
+       * src/fcpat.c (FcValueHash, FcValueListHash, FcValueListEntCreate): 
+
+       Perf optimizations.  Inline FcValueCanonicalize, 
+       reduce FcValueListPtrU usage, remove redundant cast.
+
+2006-02-07  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+
+       * src/fccharset.c (FcLangCharSetPopulate, FcCharSetInsertLeaf)
+       * fc-lang/fc-lang.c:
+
+       Fix missing FcCacheBankToIndex in FcCharSetInsertLeaf.
+       Declare extern for static arrays as arrays, not pointers.
+       (Part of the fix for 'fonts don't have en' issue after Euro patch.)
+
+2006-02-07  Dirk Mueller  <dmueller@suse.com>
+       reviewed by: plam
+
+       * fc-lang/de.orth:
+       * fc-lang/el.orth:
+       * fc-lang/en.orth:
+       * fc-lang/es.orth:
+       * fc-lang/fi.orth:
+       * fc-lang/fr.orth:
+       * fc-lang/it.orth:
+       * fc-lang/nl.orth:
+       * fc-lang/pt.orth:
+
+       Add Euro sign to list of symbols required by European languages.
+
+2006-02-07  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcCacheReadString):
+
+       Fix hidden variable warning.
+
+2006-02-07  Dirk Mueller  <dmueller@suse.com>
+       reviewed by: plam
+
+        * src/fccache.c (FcCacheReadString, FcCacheSkipString):
+       
+        Remove de-escaping logic because FcCacheWriteString
+        doesn't escape anyway. Do blockwise reading instead
+        of byte-wise for performance.
+
+2006-02-06  Patrick Lam  <plam@mit.edu>
+           Takashi Iwai  <tiwai@suse.de>
+
+       * src/fccache.c (FcCacheReadDirs, FcCacheRead):
+
+       Don't loop infinitely on recursive symlinks (client-side).
+
+2006-02-06  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       * fc-cache/fc-cache.c (scanDirs, main):
+
+       Don't loop infinitely on recursive symlinks.
+
+2006-02-06  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheReadDir,
+                        FcGlobalCacheDirFind, FcGlobalCacheUpdate,
+                        FcGlobalCacheSave, FcCacheReadDirs):
+       * src/fcint.h:
+
+       Skip subdirs when skipping over stale bits of global cache.
+       Introduce state machine into FcGlobalCacheDir to avoid
+       doing inappropriate operations on global dir entries, e.g.
+       writing out an out-of-date cache entry.
+       
+2006-02-06  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+       * src/fcdir.c (FcFileScanConfig):
+
+       Hoist FcFileIsDir check out of FcFileScanConfig loop.
+
+2006-02-06  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+
+       * src/fccfg.c (FcConfigInodeMatchFontDir, FcConfigAddFontDir,
+                      FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
+
+       Don't rescan when trying to normalize a non-declared font dir.
+       Don't add font dirs multiple times (even if they're aliased).
+
+2006-02-06  Dirk Mueller  <dmueller@suse.de>
+       reviewed by: plam
+
+       * src/fcfs.c (FcFontSetUnserialize):
+
+       Explain apples/oranges comparison and fix compilation error.
+
+2006-02-06  Dirk Mueller  <dmueller@suse.de>
+       reviewed by: plam
+
+       * src/fcfs.c (FcFontSetUnserialize):
+
+       Insert check for integer overflow in # of fonts.
+
+2006-02-04  Behdad Esfahbod  <behdad@cs.toronto.edu>
+       reviewed by: plam
+
+       * doc/Makefile.am:
+       * fc-cache/Makefile.am:
+       * fc-cat/Makefile.am: 
+       * fc-list/Makefile.am:
+
+       Make 'make distcheck' work with automake 1.6.3.
+       
+2006-02-03  Takashi IWAI  <tiwai@suse.de>
+       reviewed by: plam
+
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint, main,
+                          FcCacheFileRead):
+
+       * src/fccache.c (FcGlobalCacheLoad, FcGlobalCacheSave, 
+                        FcDirCacheConsume, FcDirCacheWrite)
+       * src/fcxml.c (FcConfigMessage):
+
+       Check I/O call return values and eliminate unused variable
+       warnings.
+
+2006-02-03  Takashi Iwai  <tiwai@suse.de>
+       reviewed by: plam
+
+       * src/fccfg.c (FcConfigAppFontAddFile, FcConfigAppFontAddDir)
+
+       Fix memory leak.
+
+2006-02-03  Dirk Mueller  <dmueller@suse.de>
+       reviewed by: plam
+
+       * src/fcfs.c (FcFontSetUnserialize):
+
+       Gracefully handle the case where a cache asserts that it
+       has a negative number of fonts, causing overflow.
+
+2006-02-03  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcDirCacheUnlink):
+
+       Fix double free in error case.
+
+2006-01-31  Behdad Esfabod  <behdad@cs.utoronto.edu>
+           Stephan Kulow  <coolo@suse.de>
+       reviewed by: plam
+
+       * fc-cache/Makefile.am:
+
+       Replace 'stamp' target with mkinstalldirs.
+
+2006-01-31  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+
+       * src/fccache.c (FcGlobalCacheLoad):
+
+       Toast broken global cache files.
+
+2006-01-30  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcGlobalCacheReadDir):
+
+       Actually use the directories that I added to the global cache.
+       Fixes 'make check'.
+
+2006-01-30  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+       
+       * fc-cache/fc-cache.c (scanDirs):
+
+       Don't stop scanning if a directory in fonts.conf doesn't
+       exist, because subsequent directories might exist.
+       
+2006-01-30  Patrick Lam  <plam@mit.edu>
+       * src/fccache.c (FcGlobalCacheLoad):
+
+       Make global cache work again after putting dir names into global
+       cache (I misplaced the recording of a file offset).
+
+2006-01-30  Patrick Lam  <plam@mit.edu>
+       * fc-cat/fc-cat.c (FcCacheGlobalFileReadAndPrint):
+       
+       Update fc-cat to handle subdir lists in global cache file.
+       
+       * src/fccache.c (FcGlobalCacheLoad):
+       
+       Another FcCacheReadString return value check.
+
+2006-01-30  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+
+       * src/fccache.c (FcGlobalCacheLoad, FcDirCacheUnlink
+                        FcDirCacheOpen, FcDirCacheRead, FcDirCacheWrite):
+
+       Make fccache more resilient to broken cache files by checking
+       return value of FcCacheReadString all the time.
+
+2006-01-30  Frederic Crozat  <fcrozat@mandriva.com>
+       reviewed by: plam
+
+       * fc-match/fc-match.1:
+       * fc-lang/fc-lang.man:
+
+       Remove references to dead fontconfig(3) manpages in
+       other fontconfig manpages.
+
+2006-01-29  Behdad Esfabod  <behdad@cs.utoronto.edu>
+       reviewed by: plam
+       
+       * doc/fcpattern.fncs:
+
+       Fix world's tiniest typo in code example.
+
+2006-01-29  Mike Fabian  <mfabian@suse.de>
+       reviewed by: plam
+
+       * src/fccache.c (FcGlobalCacheReadDir):
+
+       Fix global cache reads of subdirectories.
+
+2006-01-29  Patrick Lam  <plam@mit.edu>
+       * doc/fcconfig.fncs:
+       Add documentation for FcConfigNormalizeFontDir.
+
+       * src/fccache.c (FcGlobalCacheDirDestroy, FcGlobalCacheLoad,
+                        FcGlobalCacheUpdate, FcGlobalCacheSave):
+       * src/fcdir.c (FcDirScanConfig):
+       * src/fcint.h:
+
+       Write directory information to global caches to fix make check
+       (reported by Ronny V. Vindenes).  This changes the global cache
+       format again.
+       
 2006-01-27  Patrick Lam  <plam@mit.edu>
        * fc-cache/fc-cache.c (scanDirs):
        * fontconfig/fontconfig.h:
 
        Don't crash on non-existant directories in global cache.
 
-2006-01-26  Patirck Lam  <plam@mit.edu>
+2006-01-26  Patrick Lam  <plam@mit.edu>
        * src/fccache.c (FcGlobalCacheSave, FcDirCacheWrite):
        * src/fccfg.c (FcConfigAddFontDirSubdirs, FcConfigNormalizeFontDir):
        * src/fcdir.c (FcDirScanConfig):