-
Notifications
You must be signed in to change notification settings - Fork 8
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
Empty output from encode() #49
Comments
Thanks for the report. I suspect this is an issue in GNU libiconv, as it doesn't seem to write anything to the output buffer. Would you file an issue in their bug tracker? |
While I don't quite understand iconv behavior either (i.e. compared to "sjis" encoding which just works), it's also clearly stated that the output buffer should be explicitly flushed out by caller to prevent partial results like this go missing.
With that, it seems like Related discussion in other language can be found here if needed: racket/racket#3876 |
Woops, indeed there was a missing operation after closing the stream. I'm not sure why the existing tests didn't catch this, given that I've checked that they cover a case where final bytes are written in a stateful encoding. Anyway, see #50. |
This should have provided the same result as "sjis" encoding.
The text was updated successfully, but these errors were encountered: