npp-plugins / mimetools

Other
43 stars 11 forks source link

Base64 encode/decode doesn't work correctly with NUL character #7

Closed M-HT closed 5 years ago

M-HT commented 5 years ago

Decoding the string YQBh should produce 3 characters (second is NUL), but it only produces 1 character. Encoding the 3 characters produces string YSBh instead of YQBh - NUL character is replaced with space.

It works correctly in version 2.1.

donho commented 5 years ago

Could you provide your Notepad++ version and your MIME Tools version?

M-HT commented 5 years ago

I'm using Notepad++ v7.6.2 (32-bit). I tried versions 2.2 and 2.3 of MIME Tools and both didn't work, so I switched back to 2.1 which works.