Hi Vincent and Adam, On Wed, Dec 01, 2021 at 08:23:07PM +0000, Adam Sampson wrote: > (in the original report) > > Locale: LANG=POSIX, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set > > On Fri, Oct 22, 2021 at 02:34:44AM +0200, Vincent Lefevre wrote: > > And if I give an explicit UTF-8 font such as > > Xpdf*font: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1 > > I get complete garbage (lots of white squares). > > After some investigation, this appears to be the result of a fault in > Motif that makes it fail to understand your locale settings. > It looks like _XmStringGetCurrentCharset detects the charset in use by > looking at LANG, and doesn't know about LC_CTYPE. (I'm not sure why it > doesn't use nl_langinfo(CODESET).) So this probably needs filing > separately against the motif package... > > > I'm also wondering how Xft fonts can be used. Syntax like > > xft:Bitstream:size=9 (as used by fvwm) doesn't work. > > I've just made some changes to the xpdf man page to document this > better (and I've also made the -font argument map to the font resource, > rather than fontList, since the latter doesn't always override the > default styling in Motif).
On Thu, Dec 02, 2021 at 01:15:13AM +0100, Vincent Lefevre wrote: > This seems fine and would actually solve bug 996831. I'm wondering if there's anything left to do in xpdf here, or if I can close this bug now? The original segfault is fixed and the font setting much improved. In my testing it's still possible to confuse Motif with using different charsets in LANG and LC_CTYPE together with an X core font, but not with Xft fonts... Florian