An ESPish ls -l tmp.test.pack revealed to me that the file size is 635121
(and not 512000 = 8*64000). The 8 bytes at offset 511992 are identical
to what you get when you pack( "d", 2.9076947013346e-17) on some ix86 box.
I am too ignorant to make any guesses why the file was written
UTF-8-ish. Moreover, the perlbug info got messed up some; perhaps
the environment setting LANG=en_US.UTF-8 may have contributed to that.
(I could reproduce the B=2.9...e-17 output by explicitly using ">>:utf8"
and "<:utf8" in the open calls.)
Whether unpack should warn when certain unpack codes are applied to
a SV where DO_UTF8(sv) is true, is another question. Any opinions?
(I'd say no, but I am biased ;-)
Kind regards
Wolfgang
This is a well-known interaction between perl 5.8.0, and Redhat 9's (and
8's?) default setting of LANG to be something.UTF-8. This is fixed in
5.8.1, or can be worked around in 5.8.0 by setting LANG to eg, en_US.
> Whether unpack should warn when certain unpack codes are applied to
> a SV where DO_UTF8(sv) is true, is another question. Any opinions?
> (I'd say no, but I am biased ;-)
No idea.
--
Thank God I'm an atheist.....
Hmm, I _think_ that unpack is a candidate for SvPVbyte type warning,
but I need to ponder it some more.