Re: ASN.1 PER compile

Ferrer Guasch Vicent <[email protected]>
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
> >
> > 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.
> 

You are right, my fault! It is working, but I wasn't using it right.  I was used to pass a list. Thanks for the support.

> >
> > 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.

I will take into account, but I think I won't need it. 
> 
> /Bjorn
> 
> --
> Björn Gustavsson, Erlang/OTP, Ericsson AB

Vicent
_______________________________________________
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.