Debian Bug report logs - #610666
php5-imagick: drawImage error with non-english locale LC_NUMERIC

version graph

Package: php5-imagick; Maintainer for php5-imagick is (unknown);

Reported by: Per Eric Rosén <per@rosnix.net>

Date: Thu, 20 Jan 2011 23:54:01 UTC

Severity: normal

Tags: l10n, moreinfo

Found in version php-imagick/2.1.1RC1-1

Fixed in version 3.0.0~rc1-1

Done: Lior Kaplan <kaplan@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#610666; Package php5-imagick. (Thu, 20 Jan 2011 23:54:04 GMT) (full text, mbox, link).


Acknowledgement sent to Per Eric Rosén <per@rosnix.net>:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Thu, 20 Jan 2011 23:54:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Per Eric Rosén <per@rosnix.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: php5-imagick: drawImage error with non-english locale LC_NUMERIC
Date: Fri, 21 Jan 2011 00:25:40 +0100
Package: php5-imagick
Version: 2.1.1RC1-1
Severity: normal
Tags: l10n


When calling $image->drawImage($draw) on a IMagick object, and the locale
LC_NUMERIC (or LC_ALL) is set to "sv_SE.UTF-8", i get this exception:

Fatal error: Uncaught exception 'ImagickException' with message 'Non-conforming drawing primitive definition `ellipse'' in /home/per/lokalt/www/test.php:14 Stack trace: #0 /home/per/lokalt/tyda/www/test.php(14): Imagick->drawimage(Object(ImagickDraw)) #1 {main} thrown in /home/per/lokalt/tyda/www/test.php on line 14

When using a british LC_NUMERIC, or "C", it works fine. 
Just a guess: something with the decimal symbol?

Script to reproduce:

<?php
// this give problems
setlocale(LC_NUMERIC,"sv_SE.UTF-8");
// thoose work fine
// setlocale(LC_NUMERIC,"en_GB.TF-8");
// setlocale(LC_NUMERIC,"C");

$image = new Imagick();
$image->newImage(500,500,new ImagickPixel('lightgray'));
$draw = new ImagickDraw();
$draw->setFillColor('wheat');
$draw->setStrokeColor( new ImagickPixel('green'));
$draw->ellipse(100,100,49,49,0,360);
$image->drawImage($draw);
$image->setImageFormat('png');
header('Content-type: image/png');
echo $image;
?>

-- System Information:
Debian Release: 5.0.7
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-imagick depends on:
ii  libapache2-mod- 5.2.6.dfsg.1-1+lenny9    server-side, HTML-embedded scripti
ii  libc6           2.7-18lenny7             GNU C Library: Shared libraries
ii  libmagick10     7:6.3.7.9.dfsg2-1~lenny4 image manipulation library
ii  php5-cli [phpap 5.2.6.dfsg.1-1+lenny9    command-line interpreter for the p
ii  php5-common     5.2.6.dfsg.1-1+lenny9    Common files for packages built fr
ii  ucf             3.0016                   Update Configuration File: preserv

php5-imagick recommends no packages.

php5-imagick suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#610666; Package php5-imagick. (Sun, 22 May 2011 17:15:09 GMT) (full text, mbox, link).


Acknowledgement sent to Guillaume Delacour <gui@iroqwa.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>. (Sun, 22 May 2011 17:15:09 GMT) (full text, mbox, link).


Message #10 received at 610666@bugs.debian.org (full text, mbox, reply):

From: Guillaume Delacour <gui@iroqwa.org>
To: 610666@bugs.debian.org
Subject: Re: php5-imagick: drawImage error with non-english locale LC_NUMERIC
Date: Sun, 22 May 2011 19:04:29 +0200
[Message part 1 (text/plain, inline)]
Hello,

Could you please verify that the problem is still present with version
3.0.0~rc1-1 present in Squeeze ? (I don't reproduce this).

-- 
Guillaume Delacour <gui@iroqwa.org>
[signature.asc (application/pgp-signature, inline)]

Added tag(s) moreinfo. Request was from Guillaume Delacour <gui@iroqwa.org> to control@bugs.debian.org. (Wed, 20 Jul 2011 23:57:03 GMT) (full text, mbox, link).


Reply sent to Lior Kaplan <kaplan@debian.org>:
You have taken responsibility. (Tue, 01 Oct 2013 23:09:10 GMT) (full text, mbox, link).


Notification sent to Per Eric Rosén <per@rosnix.net>:
Bug acknowledged by developer. (Tue, 01 Oct 2013 23:09:10 GMT) (full text, mbox, link).


Message #17 received at 610666-done@bugs.debian.org (full text, mbox, reply):

From: Lior Kaplan <kaplan@debian.org>
To: 610666-done@bugs.debian.org
Subject: can't reproduce
Date: Wed, 2 Oct 2013 01:07:55 +0200
[Message part 1 (text/plain, inline)]
Version: 3.0.0~rc1-1

Guillaume couldn't reproduce the problem (I couldn't either). Closing.
[Message part 2 (text/html, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 30 Oct 2013 07:34:24 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 01:08:55 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.