Details
-
Bug
-
Status: Open
-
Critical
-
Resolution: Unresolved
-
2.3
-
None
-
None
Description
The function getDefaultCacheFile() of the class FontCache should work like this:
[1] case: select user_dir
-> user_dir: 'C:\Users\strv'
-> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
-> cache_file: 'C:\Users\strv\.fop\fop-fonts.cache'
[2] case: select temp_dir
-> user_dir: ''
-> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
-> cache_file: 'C:\Users\strv\AppData\Local\Temp\.fop\fop-fonts.cache'
[3] case: select curr_dir
-> user_dir: ''
-> temp_dir: ''
-> cache_file: 'fop-fonts.cache'
Actually it works uncorrectly like this:
[1] case: select user_dir
-> user_dir: 'C:\Users\strv'
-> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
-> cache_file: 'C:\Users\strv\.fop\fop-fonts.cache'
[2] case: select temp_dir
-> user_dir: ''
-> temp_dir: 'C:\Users\strv\AppData\Local\Temp\'
-> cache_file: '.fop' --> wrong behavior !!!
[3] case: select curr_dir
-> user_dir: ''
-> temp_dir: ''
-> cache_file: '.fop' --> wrong behavior !!!