Bug 3454

Summary: fc-lang cannot handle CR/LF line endings
Product: fontconfig Reporter: Daniel Stone <daniel>
Component: libraryAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: blocker    
Priority: high    
Version: 2.3   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: fixes the CR/LF line ending problem

Description FreeDesktop Bugzilla Database Corruption Fix User 2005-06-02 08:26:08 UTC
Hi,

fc-lang cannot process the "include" statement in the *.orth files when they are
saved with DOS line endings (CR/LF).

Regards,
Mark
Comment 1 FreeDesktop Bugzilla Database Corruption Fix User 2005-06-02 08:28:55 UTC
Created attachment 2816 [details] [review]
fixes the CR/LF line ending problem

now it tests for both CR and LF in a while() loop to catch both if they exist
Comment 2 Keith Packard 2005-06-02 21:26:10 UTC
This function should probably strip all whitespace on both sides of the filename.

Could you provide a patch using 'isspace' instead of this explicit test against
the two characters?
Comment 3 Patrick Lam 2006-02-22 15:51:06 UTC
I committed a modified version of this patch, pulling up the \r stripping to
get_line.

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.