Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Perl: porters

[perl #70618] Packing for VAX 32bit unsigned integer is a mess

 

 

Perl porters RSS feed   Index | Next | Previous | View Threaded


perlbug-followup at perl

Nov 17, 2009, 6:35 PM

Post #1 of 1 (217 views)
Permalink
[perl #70618] Packing for VAX 32bit unsigned integer is a mess

# New Ticket Created by drake ch
# Please include the string: [perl #70618]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=70618 >



This is a bug report for perl from drake.ch [at] hotmail,
generated with the help of perlbug 1.39 running under perl 5.10.1.


-----------------------------------------------------------------
[Please describe your issue here]
** Perl Pack Bug Report **
When packing integers for VAX little endian 32bit unsigned, the host byte-order
seems to stay. For example: perl -e 'print pack "V",123'|od shows that the
integer is aligned in 16bit chunks rather than 8. After a write(1,&i,4); with
the same result in byte-order, I've concluded that perl must be assuming that
little endian encoding are always in 8-bit chunks.

Best wishes
drake.ch [at] hotmail
www.gangsterfreak.com



[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=core
severity=medium
---
Site configuration information for perl 5.10.1:

Configured by root at Sun Nov 15 15:37:01 CET 2009.

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

Platform:
osname=linux, osvers=2.6.30.3, archname=i686-linux
uname='linux cspade 2.6.30.3 #4 smp mon aug 10 08:04:47 bst 2009 i686 gnulinux '
config_args='-des -Dprefix=/usr'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -pipe -fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.4.1', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.10.1.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.10.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -O2 -L/usr/local/lib -fstack-protector'

Locally applied patches:


---
@INC for perl 5.10.1:
/usr/lib/perl5/5.10.1/i686-linux
/usr/lib/perl5/5.10.1
/usr/lib/perl5/site_perl/5.10.1/i686-linux
/usr/lib/perl5/site_perl/5.10.1
.

---
Environment for perl 5.10.1:
HOME=/home/drake
LANG (unset)
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/usr/local/bin:/usr/bin:/bin:/usr/X386/bin:/usr/TeX/bin
PERL_BADLANG (unset)
SHELL=/bin/bash

_________________________________________________________________
NY Windows Live Messenger med nye fede funktioner. Hent den her!
http://download.live.com/messenger

Perl porters RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.