Bug 60146

Summary: a2ps outputs invalid postscript if LC_NUMERIC is any locale except C, POSIX or en_*
Product: [Retired] Red Hat Linux Reporter: elias
Component: a2psAssignee: Tim Waugh <twaugh>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 7.2CC: elias
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-02-20 22:43:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description elias 2002-02-20 22:43:46 UTC
Description of Problem:

a2ps outputs invalid postscript if LC_NUMERIC is any locale except C, POSIX or en_*

This is due to the fact that in most locales except English, American, C and
POSIX, decimal_point is "," and not ".". Postscript, however, always expects


Version-Release number of selected component (if applicable):

a2ps-4.13b-15

How Reproducible:

100%

Steps to Reproduce:
1. export LC_NUMERIC=is_IS
2. echo test|a2ps -o test.ps
3. gs test.ps

Actual Results:

gs test.ps fails. Examination of the postscript code reveals that linux 693
reads thus:

/th 15,000000 def

Expected Results:

line 693 in valid postscript should read like this:

/th 15.000000 def

Additional Information:

Comment 1 Tim Waugh 2002-02-20 23:23:31 UTC

*** This bug has been marked as a duplicate of 40532 ***