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

Bug#205255: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=205255



reassign 205255 xlibs
retitle 205255 xlibs: [libX11] XcmsLRGB_RGBi_ParseString() uses sscanf() to parse floats but is not locale-aware
tag 205255 = upstream
severity 205255 normal
thanks

Thanks for your analysis, Thomas.

On Fri, Sep 19, 2003 at 03:48:56PM -0400, Thomas Dickey wrote:
> >                      Debian Bug report logs - [1]#205255
> >             xterm: fails on intensity specifications rgbi:<r/g/b>
> 
> This fails because of the X11 library rather than xterm.
> 
> I considered whether it was due to delaying the lookup of colors (and possibly
> using a different method), but restoring the "original" way resources were
> found, there's no change (so I'm certain that it is not due to a change in
> xterm).  However, I am not able to see where X11 has changed either.
> 
> Reading through Xlib I see the issue is that in de_DE locale, a "," is used for
> a decimal separator rather than ".".  The XcmsLRGB_RGBi_ParseString() function
> uses sscanf, which (given the locale) expects a comma.  That particular part
> of the code hasn't changed since XFree86 3.3.6.  The available documentation
> does not mention whether this string should be interpreted in a locale-specific
> manner, only an oblique reference to its character set.
> 
> >xterm does not recognise intensity specifications like
> >
> >        XTerm*VT100*color1:  rgbi:0.4/0.0/0.0
> >
> >Error message:
> >
> >         xterm: Cannot allocate color rgbi:0.4/0.0/0.0
> >
> >It did definitively work in earlier versions.
> 
> more information about the earlier versions would be helpful, but in any
> case this bug is not related to xterm.

-- 
G. Branden Robinson                |    The first thing the communists do
Debian GNU/Linux                   |    when they take over a country is to
branden@debian.org                 |    outlaw cockfighting.
http://people.debian.org/~branden/ |    -- Oklahoma State Senator John Monks

Attachment: signature.asc
Description: Digital signature


Reply to: