Created attachment 89343 [details]
Defaulting to LOCAL_APPDATA_FONTCONFIG_CACHE
I'm a GIMP dev. We had some user telling us that the default value for fontconfig cache may not be the most appropriate on Windows (cf. https://bugzilla.gnome.org/show_bug.cgi?id=703331).
Well I'm not expert on Windows, so I can't say if LOCAL_APPDATA_FONTCONFIG_CACHE is the best fit (but saving in the non-roaming data repository sounds acceptable). On the other hand, saving in the %TEMP% directory though may indeed not be the best idea, if the TEMP directory concept is anything like on UNIX (where you should not expect the TEMP directories to have the same contents at your next reboot. It may, but on many installation, temp dirs are emptied). And apparently, according to our user, it is indeed often emptied on Windows too.
So since you already have the implementation for LOCAL_APPDATA_FONTCONFIG_CACHE, I'm proposing to simply use it as the default for Windows.
merged into git. thanks.