From: Edwin Fine Date: 2006-12-09T22:00:54+09:00 Subject: Re: Am I missing something about BER-compressed integer? Francis Cianfrocca wrote: > On 12/9/06, Edwin Fine wrote: >> >> Ruby uses BER as specified by Perl. Excerpt from the perlpacktut page: >> > Thanks for this info. BER is not specified by Perl, of course, but > rather by > the ITU. The only normative language I've found on the "BER-compressed (snip) > Array#pack doesn't support this encoding as far as I know (I ended up > writing it by hand in the Net::BER module). What I meant was not that Perl specified the BER encoding. I just meant that Ruby's implementation behavior is based on the Perl pack behavior, which itself was based on a project at Casbah.org (which I could not locate). They explicitly say that it's not the BER from ASN.1. I don't know if that means it is or is not the one defined by ITU. -- Posted via http://www.ruby-forum.com/.