oops, you are right, I have uploaded a new version to CPAN that
checks the pack encoding order for quads before using it.
Thank you for the report.
Cheers,
- Salva
--- Guest via RT <bug-Net-SFTP-Foreign@rt.cpan.org> wrote:
Show quoted text>
> Sun Apr 23 07:29:13 2006: Request 18888 was acted upon.
> Transaction: Ticket created by guest
> Queue: Net-SFTP-Foreign
> Subject: Problems with Quad and little-endian on an Intel
> platform
> Owner: Nobody
> Requestors: mha@hafsjold.dk
> Status: new
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=18888 >
>
>
> I have found some problems in the Net::SFTP::Foreign::Buffer
> version
> 0.53.
>
> line 38: return unpack(Q => substr(${$_[0]}, 0, 8, '')) in sub
> get_int64
> line 72: ${$_[0]} .= pack(Q => $_[1]) in sub put_int64
> line 107: return pack(Q => $_[0]) in my %pack
>
> Those lines of code only work correctly on if the native byte order
> is
> big-endian.
>
> I use FreeBSD 5.4 on an Intel platform with Quad and little-endian
> and
> here it doesnât work.
>
> Regards
> Mogens Hafsjold
>
>
Show quoted text__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com