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

NewReader can't process data bigger than 8K #17

Open
foqq opened this issue Sep 25, 2014 · 0 comments
Open

NewReader can't process data bigger than 8K #17

foqq opened this issue Sep 25, 2014 · 0 comments

Comments

@foqq
Copy link

foqq commented Sep 25, 2014

No description provided.

MoZhonghua pushed a commit to MoZhonghua/iconv-go that referenced this issue Jun 18, 2016
This shoud also fix issue djimenez#25: When the amount of data will be truncated

iconv() will return EINVAL when An incomplete multibyte sequence is
encountered in the input, and the input byte sequence terminates after
it. So if the input is larger than the internal buffer of Reader and
the end of the buffer conatins partial multi-byte chars, then Reader
will failed with EINVAL.

So when iconv() return EINVAL, we checks whether there are more data to
process, if so, we continue without report an error to user.
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

1 participant