[Xprint] Is the locale being used sensibly by Xprint? LANG and
LC_CTYPE are both used.
Drew Parsons
dparsons at debian.org
Fri Nov 26 10:58:12 EST 2004
A Canadian user has reported trouble getting the correct paper to appear
under mozilla. He needs to use letter, but mozilla displays a4 instead.
His bug report is at
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282806
I presume Xprint is working correctly as written, and that he is seeing
this behaviour because he has LC_CTYPE set to "C", even though he has
LANG=en_CA.
xc/programs/Xserver/Xprint/attributes.c uses LANG in XpGetConfigDir( ),
but uses LC_CTYPE in XpSpoolerGetServerAttributes, which I gather is the
one reading in default-medium.
Does this behaviour make sense? Should the same locale variable be used
in both places?
Would it make better sense to use LC_PAPER in both places?
Is it worth filing a bug report about this question?
------
A related but separate question, Debian allows the system paper to be
defined in /etc/papersize, and it would be nice for Xprint's
default-medium to be set by it. Is /etc/papersize a common mechanism
found in all or most unices and linuxes?
Drew
More information about the Xprint
mailing list