[Fontconfig] patch: fallback to POSIX if LC_CTYPE is the empty string "".

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A SuSE user recently reported a bug that icewm didn't show any fonts.

It turned out to be user error, he had set LANG="" (and no
other locale specific environment variables).

When the effective value of LC_CTYPE is the empty string, fontconfig
currently matches apparently random and it may happen that a symbol
font or some other font completely unsuitable for displaying even
English is matched.

This happens only when LC_CTYPE is the empty string, for all other
values, even nonsensical ones, fontconfig falls back to English:

    mfabian@shannon:~$ LC_CTYPE="" fc-match sans
    SY______.PFB: "Symbol" "Regular"
    mfabian@shannon:~$ LC_CTYPE="fff" fc-match sans
    verdana.ttf: "Verdana" "Regular"
    mfabian@shannon:~$ LC_CTYPE="POSIX" fc-match sans
    verdana.ttf: "Verdana" "Regular"
    mfabian@shannon:~$

Although setting LC_CTYPE="" is not a valid setting in my opinion, I
think fontconfig should fall back to matching an English font in that
case, just as it does for all the other invalid settings of LC_CTYPE.

Patch attached.

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

-- 
Mike FABIAN   <mfabian@xxxxxxx>   http://www.suse.de/~mfabian
?????????????

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux