Summary: | The FcStrCopyFilename function contradicts its documentation | ||
---|---|---|---|
Product: | fontconfig | Reporter: | David <ssdk> |
Component: | library | Assignee: | Keith Packard <keithp> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | 2.4 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
David
2007-10-26 12:18:54 UTC
FcStrCopyFilename does a lot more than the documentation mentions. I've updated the docs to reflect its full scope: <function>FcStrCopyFilename</function> constructs an absolute pathname from <parameter>s</parameter>. It converts any leading '~' characters in to the value of the HOME environment variable, and any relative paths are converted to absolute paths using the current working directory. Sequences of '/' characters are converted to a single '/', and names containing the current directory '.' or parent directory '..' are correctly reconstructed. Returns NULL if '~' is the leading character and HOME is unset or disabled (see <function>FcConfigEnableHome</function>) 026fe895e487d0a9607a8506ab8be2ff6022ea19 |
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.