Project

General

Profile

Actions

Bug #7653

closed

Array.pack ignores Big Endian modifier

Added by rudolone (rudi pettazzi) over 11 years ago. Updated almost 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
[ruby-core:51231]

Description

Running on Linux, it seems that L> modifier is ignored:

irb(main):024:0> [216].pack('L<')
=> "\000\000\001\000"
irb(main):025:0> [2
16].pack('L>')
=> "\000\000\001\000"

Expected result:

irb(main):024:0> [216].pack('L<')
=> "\000\000\001\000"
irb(main):025:0> [2
16].pack('L>')
=> "\000\001\000\000"

Updated by laurent3814 (Laurent Charignon) over 11 years ago

I can't reproduce it on Ubuntu x86_64 with Ruby(mri) 1.9.3p125, what version of Linux are you using?

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

  • Status changed from Open to Feedback

Updated by ko1 (Koichi Sasada) about 11 years ago

  • Category set to core
  • Assignee set to usa (Usaku NAKAMURA)
  • Target version set to 1.9.3
Actions #4

Updated by naruse (Yui NARUSE) about 11 years ago

  • Target version changed from 1.9.3 to 2.6
Actions #5

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.6)
Actions #6

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0