Re: ASN.1 PER compile

Björn Gustavsson <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <CA+yh78Rszhz2Vr8WCQMdqfDTBUnDO7H8ncsrxwTM9kN-vOukWw@mail.gmail.com>
On Mon, Oct 27, 2014 at 12:21 PM, Ferrer Guasch Vicent
<[email protected]> wrote:
>
> I don't get any errors when compiling, the problem appears when using the generated module. That's why I thought the @ were a problem.
> When I try to decode a S1Setup message I obtain this error:
>
>         > 'S1AP':decode('S1AP-PDU',Str).
>         {error,{asn1,{case_clause,[0,17,0,48,0,0,4,0,59,0,8,0,66,
>                                    244,112,0,0,6,224,0,60,64,10|...]}}}

It seems that Str is a list. We now only allow a binary
as the second argument to the decode function.

>
> The test function:
>
>         > asn1ct:test('S1AP','S1AP-PDU').
>         {error,
>             {asn1,
>                 {encode,
>                     {{'S1AP','S1AP-PDU',
>                          {successfulOutcome,
>                              {'SuccessfulOutcome',240,notify,<<"\n\topen_type">>}}},
>                      {error,{asn1,function_clause}}}}}}
>

That is a bug, but not a new one. The asn1ct:test/2 function does not
understand table constraints.

/Bjorn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB
_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.