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

Bug#421025: XCreateFontSet fails with fixed 13 as first font pattern in UTF-8 environment



tags 421025 +unreproducible moreinfo
thank you



Ben Hutchings wrote:
> Output for various valid locales and font patterns:
>
> $ LC_CTYPE=C ./a.out -*-fixed-*-*-*-*-13-*-*-*-*-*-*-*
> default:
> $ LC_CTYPE=en_GB ./a.out -*-fixed-*-*-*-*-13-*-*-*-*-*-*-*
> default:
> $ LC_CTYPE=en_GB.UTF-8 ./a.out -*-fixed-*-*-*-*-13-*-*-*-*-*-*-*
> a.out: fontset.c:21: main: Assertion `fs' failed.
> Aborted
> $ LC_CTYPE=fr_FR.UTF-8 ./a.out -*-fixed-*-*-*-*-13-*-*-*-*-*-*-*
> a.out: fontset.c:21: main: Assertion `fs' failed.
> Aborted
> $ LC_CTYPE=fr_FR.UTF-8 ./a.out -*-fixed-*-*-*-*-13-*-*-*-*-*-*-*,*  # note fallback of "*" here
> a.out: fontset.c:21: main: Assertion `fs' failed.
> Aborted
> $ LC_CTYPE=fr_FR.UTF-8 ./a.out -*-fixed-*-*-*-*-14-*-*-*-*-*-*-*
> missing: KSC5601.1987-0
> missing: GB2312.1980-0
> default:
> $ LC_CTYPE=fr_FR.UTF-8 ./a.out -*-fixed-*-*-*-*-14-*-*-*-*-*-*-*,-*-fixed-*-*-*-*-13-*-*-*-*-*-*-*
> missing: KSC5601.1987-0
> missing: GB2312.1980-0
> default:
>
>   

Seems to works fine here:
    $ LC_CTYPE=fr_FR ./prout '-*-fixed-*-*-*-*-13-*-*-*-*-*-*-*'
    default:
    $ LC_CTYPE=fr_FR.utf8 ./prout '-*-fixed-*-*-*-*-13-*-*-*-*-*-*-*'
    missing: KSC5601.1987-0
    missing: GB2312.1980-0
    default:
(the other cases get either the first or the second output from above).

Could you try to debug a little bit and see while it fails?

Brice




Reply to: