Skip Menu |

This queue is for tickets about the OLE-Storage_Lite CPAN distribution.

Report information
The Basics
Id: 4918
Status: resolved
Priority: 0/
Queue: OLE-Storage_Lite

People
Owner: jmcnamara [...] cpan.org
Requestors: theglauber
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11
Fixed in: (no value)



Subject: Character in "c" format wrapped
In our tests (version 0.11), we're getting the warning: Character in "c" format wrapped at /aissrc/inc/perl_5.8.0/lib/site_perl/5.8.0/OLE/Storage_Lite.pm line 1367. Here's the problem: sub LocalDate2OLE($) { my($raDate) = @_; return "\x00" x 8 unless($raDate); my ($iSec, $iMin, $iHour, $iDay, $iMon, $iYear, $iHSec) = @{$raDate}; $iSec ||=0; $iMin ||=0; $iHour ||=0; $iDay ||=0; $iMon ||=0; $iYear ||=0; $iHSec ||=0; [...] #3. Make HEX string my $iHex; my $sRes = ''; for(my $i=0;$i<8;$i++) { $iHex = $iBigDt % 0x100; $sRes .= pack 'c', $iHex; <--- problem is here $iBigDt /= 0x100; } return $sRes; } This is a call to pack, using the "c" format. Should it be "C" (uppercase) instead?
Subject: OLE::Storage_Lite: Character in "c" format wrapped
Show quoted text
> Character in "c" format wrapped at > /aissrc/inc/perl_5.8.0/lib/site_perl/5.8.0/OLE/Storage_Lite.pm line > 1367.
Fixed in OLE::Storage_Lite version 0.12. John. --