Bug 12965

Summary: The function FcStrSetAddFilename contradicts its documentation
Product: fontconfig Reporter: David <ssdk>
Component: libraryAssignee: Keith Packard <keithp>
Severity: normal    
Priority: medium    
Version: 2.4   
Hardware: All   
OS: All   
i915 platform: i915 features:

Description David 2007-10-26 12:21:38 UTC
The description of the function FcStrSetAddFilename states: "Adds a copy s to set, The copy is created with FcStrCopyFilename so that leading '~' values are replaced with the value of the HOME environment variable". But if the name of the input file is not a full path and its first character is not '~', the function FcStrCopyFilename returns concatenation of the current working directory with the file name. So the function FcStrSetAddFilename adds to the set the string, which should not be added according to the documentation.

The detailed bug description can be found at: 

Comment 1 Keith Packard 2007-11-03 22:32:13 UTC

*** This bug has been marked as a duplicate of bug 12964 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.