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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>    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
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux