[Fontconfig] icon theme weight query ... (fwd)

Patrick Lam plam at MIT.EDU
Mon Feb 6 18:39:03 PST 2006

Dirk Mueller wrote:
> On Monday, 6. February 2006 15:22, Patrick Lam wrote:
>>Hopefully Dirk will have a patch soon.  It should only need to change
>>FcCacheReadString.  There's a convenient 'len' parameter to
>>FcCacheReadString which would be useful in deciding how much to read, so
>>it should be something like this:
>>read (fd, dest, len);
>>// iterate though and replace \\ with \, etc
>>lseek (fd, strlen(dest)-len, SEEK_SET);
> Yes, except that the de-escaping isn't needed, since we don't escape anyway in 
> FcCacheWriteString(). See patch below (survived my testing):

Right, I fixed a C++-ism (stmt; int foo;) and committed.


More information about the Fontconfig mailing list