Re: Fontconfig cache file update fails on Windows (also Cygwin)

Masamichi Hosoda <[email protected]>
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
>    I'm going to guess that under posix, you should be able to update
> a file that you hold a read-write lock on.  That means under cygwin
> it should work.  Have you reported the bug to the cygwin people?

I've reported it.
https://cygwin.com/ml/cygwin/2017-01/msg00108.html

> As for the MingGW case, you may have to find a way to lock access
> to the file in such a way as to prevent multiple updates AND
> allow update or writing.

I do not know whether that can be realized or not.

On MinGW, fontconfig deletes the cache before replacing it.
https://cgit.freedesktop.org/fontconfig/tree/src/fcatomic.c?id=2.12.1#n198

In other words, multiple updates are not prevented.
Anyway, replacing fails because locked files can not be deleted.

But, most Windows applications have their own fontconfig cache directories
unlike linux applicatons.
In this case, there is no conflict with other applications
even if without locking.

fontconfig 2.11.1 does not lock the cache while updating it.
It works fine on Windows.
_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.