haskell / base16-bytestring

Fast base16 (hexadecimal) encoding and decoding for Haskell bytestrings.
Other
27 stars 10 forks source link

Faulty handling of uppercase input #2

Closed niklasb closed 5 years ago

niklasb commented 12 years ago
*Prelude Base16> Base16.encode . fst . Base16.decode $ BSC.pack "AA"
"bb"
*Prelude Base16> Base16.decode $ BSC.pack "FF"
("","FF")

There seems to be an off-by-one error in the decoding table.

schernichkin commented 10 years ago

Please push to hackage version with correct uppercase support

23Skidoo commented 5 years ago

This was fixed in release 0.1.1.6.