Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decoding the illegal string 'GGW' does not throw an exception #4

Open
euneuber opened this issue Jun 23, 2021 · 1 comment
Open

decoding the illegal string 'GGW' does not throw an exception #4

euneuber opened this issue Jun 23, 2021 · 1 comment

Comments

@euneuber
Copy link

The string 'GGW' contains only valid chars but cannot be decoded. This should also throw an exception and not return an empty string.

@chris-baumann-at
Copy link

The string "GGW" is not "illegal", as it consists of chars of the charset. And it decodes to two chr(0x00).
So it works as designed/defined.
But it possibly is senseless to decode a string which will never be the result of an encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants