php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56434 page width and heigth are generated regarding to the LC settings
Submitted: 2005-06-30 11:24 UTC Modified: 2006-02-21 07:42 UTC
From: su at rtme dot net Assigned: steinm (profile)
Status: Closed Package: ps (PECL)
PHP Version: 4.3.10 OS: Debian unstable
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: su at rtme dot net
New email:
PHP Version: OS:

 

 [2005-06-30 11:24 UTC] su at rtme dot net
Description:
------------
if the php locales are setted for e.g. 'de_DE' or any language where 'decimal_point' is ',' the floats of 'width' and 'height' at 'ps_begin_page' are generated with the ',' which of course results in an invalid Postscript document.
I think this is a serious bug! 

Reproduce code:
---------------
setlocale (LC_ALL, 'de_DE.ISO_8859-1');
// or
// setlocale (LC_NUMERIC, 'de_DE.ISO_8859-1');
$ps = ps_new();
ps_open_file(  $ps, "my_test_file.ps" );
ps_begin_page($ps, 612, 792);
ps_end_page( $ps );
ps_close(  $ps );

Expected result:
----------------
Invalid Postscript document


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-21 07:42 UTC] uwe at steinmann dot cx
This should be fixed with a more recent version of pslib. pslib 0.2.6 should be fine.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 13:01:27 2025 UTC