You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
It's easy to reproduce with my surname: asn1CharacterToString ("Möll" :: ASN1CharacterString)
Just "M*** Exception: continuation bytes invalid
CallStack (from HasCallStack):
error, called at ./Data/ASN1/Types/String.hs:109:34 in asn1-types-0.3.3-681f1a1bec95ecc832958e8497db7f3872872f9a24538c763fb4706942450148:Data.ASN1.Types.String
Cheers
The text was updated successfully, but these errors were encountered:
Hey,
Thanks for maintaining these ASN.1 libs! If I'm not mistaken, the UTF-8 encoding implementation in https://hackage.haskell.org/package/asn1-types-0.3.3/docs/src/Data.ASN1.Types.String.html#local-6989586621679034993 is broken due to the last byte always being set null —
0xc0 & 0x3f = 0
. I presume you meant to bitwise-or it with 0x80 instead to have the first two bits be10
.It's easy to reproduce with my surname:
asn1CharacterToString ("Möll" :: ASN1CharacterString)
Cheers
The text was updated successfully, but these errors were encountered: