Skip Menu |

This queue is for tickets about the Imager CPAN distribution.

Report information
The Basics
Id: 21770
Status: resolved
Priority: 0/
Queue: Imager

People
Owner: Nobody in particular
Requestors: RBS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.53
Fixed in: (no value)



Subject: $image->string( string => "0", ... ) is a noop.
We've had to add the following workaround in a string display routine to get a string containing a single zero ("0") to display. Also, passing in a chr( 0 ) seems to cause a premature end of string to be found. $text .= " " if length $text && !$text; ## Imager declines to display "0" $image->string( color => \@color, font => $font, string => $text, x => $self->get_x, y => $self->get_y + $global_ascent, );
On Thu Sep 28 16:36:28 2006, RBS wrote: Show quoted text
> We've had to add the following workaround in a string display routine to > get a string containing a single zero ("0") to display. > > Also, passing in a chr( 0 ) seems to cause a premature end of string to > be found.
Sorry about the delay in getting back to you on this, work has been keeping me busy. I'll take a look at this as soon as I get the chance. Tony
CC: RBS [...] cpan.org
Subject: Re: [rt.cpan.org #21770] $image->string( string => "0", ... ) is a noop.
Date: Mon, 02 Oct 2006 22:47:12 -0400
To: bug-Imager [...] rt.cpan.org
From: Barrie Slaymaker <barries [...] slaysys.com>
Tony: low urgency for me; the workaround for "0" (digit zero) works for us and I don't know of any fonts that map anything to ASCII NUL (chr( 0 )). - Barrie via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=21770 > > > On Thu Sep 28 16:36:28 2006, RBS wrote: >
>> We've had to add the following workaround in a string display routine to >> get a string containing a single zero ("0") to display. >> >> Also, passing in a chr( 0 ) seems to cause a premature end of string to >> be found. >>
> > Sorry about the delay in getting back to you on this, work has been > keeping me busy. > > I'll take a look at this as soon as I get the chance. > > Tony >
Hi Barry, On Thu Sep 28 16:36:28 2006, RBS wrote: Show quoted text
> We've had to add the following workaround in a string display routine to > get a string containing a single zero ("0") to display.
This is fixed in current svn, available from: http://imager.perl.org/svn/trunk/Imager Show quoted text
> Also, passing in a chr( 0 ) seems to cause a premature end of string to > be found.
Were you using the Win32 font support here? ie. creating a font with: my $font = Imager::Font->new(face => $facename); as opposed to one of the font file drivers where you supply a filename: my $font = Imager::Font->new(file => $font_file_name); If this was a problem with one of the file based drivers, please let me know which driver, so I can track it down. If it was the Win32 driver then the problem is fixed in current svn. Thanks for reporting these problems, and sorry about taking so long to fix them. Tony
CC: RBS [...] cpan.org
Subject: Re: [rt.cpan.org #21770] $image->string( string => "0", ... ) is a noop.
Date: Mon, 06 Nov 2006 09:54:38 -0500
To: bug-Imager [...] rt.cpan.org
From: Barrie Slaymaker <barries [...] slaysys.com>
This is on Win32, using the "face => $facename" API. And no worries about the time lag, our code is working fine without the fixes (the first has a workaround, the second was observed only while testing the first). - Barrie via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=21770 > > > Hi Barry, > > On Thu Sep 28 16:36:28 2006, RBS wrote: >
>> We've had to add the following workaround in a string display routine to >> get a string containing a single zero ("0") to display. >>
> > This is fixed in current svn, available from: > > http://imager.perl.org/svn/trunk/Imager > >
>> Also, passing in a chr( 0 ) seems to cause a premature end of string to >> be found. >>
> > Were you using the Win32 font support here? ie. creating a font with: > > my $font = Imager::Font->new(face => $facename); > > as opposed to one of the font file drivers where you supply a filename: > > my $font = Imager::Font->new(file => $font_file_name); > > If this was a problem with one of the file based drivers, please let me > know which driver, so I can track it down. > > If it was the Win32 driver then the problem is fixed in current svn. > > Thanks for reporting these problems, and sorry about taking so long to > fix them. > > Tony >
On Thu Sep 28 16:36:28 2006, RBS wrote: Show quoted text
> We've had to add the following workaround in a string display routine to > get a string containing a single zero ("0") to display. >
Sorry for the delay in fixing this. This problem has been fixed in Imager 0.55. Thanks for your report. Tony