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

Bug#820803: xterm: X resources parsed with locale settings



On Tue, Apr 12, 2016 at 15:54:17 +0200, Ph. Marek wrote:

> Package: xterm
> Version: 324-1
> Severity: normal
> 
> Settings activated via ~/.Xresources are parsed locale-dependent.
> 
> I'm running LANG=de_AT.UTF-8; if I put
> 
>     XTerm*scaleHeight: 1.3
> 
> in ~/.Xresources (and "xrdb -merge" it), it's ignored.
> The setting
> 
>     XTerm*scaleHeight: 1,3
> 
> works, though.
> 
> Now, that won't work for long, as the /home directory is shared across 
> quite a few machines; and not all of them have locales installed, and not 
> on all of them I'm working with "de_AT", so on these the setting is invalid 
> again.
> 
> 
> Configuration files should be parsed via the "C" locale, IMO - having to 
> think about "," vs. "." in there is awkward.
> 
As far as I can tell the conversion is done in
https://cgit.freedesktop.org/xorg/lib/libXt/tree/src/Converters.c#n822
which indeed depends on the locale.

But since there's no way to tell how many people depend on the current
behaviour, and changing it would break their configuration...

Cheers,
Julien


Reply to: