[Fontconfig] patch: fall back to POSIX if the effective value of LC_CTYPE is the empty string ""

Mike FABIAN mfabian at suse.de
Thu Oct 20 00:05:19 EST 2005


Patrick Lam <plam at MIT.EDU> さんは書きました:

> I've applied this patch.

Thank you!

I made another small patch a while ago which I may have forgotten to
submit or which may have been lost. Anyway, it is apparently
not yet applied to the fontconfig 2.4 branch.


If the effective value of LC_CTYPE is the empty string "", fontconfig
should work the same way as in the POSIX locale, i.e.  as if
the element "lang" is not set. It should not try to parse a
"lang" element from the empty string. 

This makes sure that even if LC_CTYPE is the empty string, fontconfig
matches something readable. Without that it apparently matches
completely random and might match a font which doesn't even have ASCII
glyphs. As a result, nothing at all may be displayed.

For details where this caused a problem for a user, see:

http://bugzilla.novell.com/show_bug.cgi?id=102328

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugzilla-102328.patch
Type: text/x-patch
Size: 476 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20051019/a9058a80/bugzilla-102328.bin
-------------- next part --------------

-- 
Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。


More information about the Fontconfig mailing list