[erlang-bugs] ASN.1 PER compile
Björn Gustavsson
bjorn@REDACTED
Mon Oct 27 12:59:07 CET 2014
On Mon, Oct 27, 2014 at 12:21 PM, Ferrer Guasch Vicent
<vicent.ferrerguasch@REDACTED> 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
More information about the erlang-bugs
mailing list