Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 170119

Summary: net-print/cups - cupstestppd chokes on de_DE locale
Product: Gentoo Linux Reporter: Ernst Bachmann <e.bachmann>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED UPSTREAM    
Severity: minor    
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ernst Bachmann 2007-03-09 14:29:23 UTC
cupstestppd seems to incorrectly take the Locale settings into account when reading a ppd file, trying to use the decimal separator when parsing the version nr.
(Version in PPD File is "4.3", with LANG="de_DE.UTF-8", cupstestppd parses it as "4.0")
My guess is that it tires to use ',' as seperator, as defined in the german locale.

Reproducible: Always

Steps to Reproduce:
> cupstestppd EPSONPhoto.ppd
> LANG=C cupstestppd EPSONPhoto.ppd
Actual Results:  
> cupstestppd EPSONPhoto.ppd
EPSONPhoto.ppd: BESTANDEN
        WARNUNG    Obsolete PPD Version 4,0!
                REF: Seite 42, Kapitel 5.2.
> LANG=C cupstestppd EPSONPhoto.ppd
EPSONPhoto.ppd: PASS


Expected Results:  
> cupstestppd EPSONPhoto.ppd
EPSONPhoto.ppd: BESTANDEN
> LANG=C cupstestppd EPSONPhoto.ppd
EPSONPhoto.ppd: PASS


Probably an upstream bug.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-03-09 19:34:31 UTC
(In reply to comment #0)
> Probably an upstream bug.

Indeed...