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

Fix handling of Shift_JISx0213 #50

Merged
merged 3 commits into from
Jun 21, 2021
Merged

Fix handling of Shift_JISx0213 #50

merged 3 commits into from
Jun 21, 2021

Conversation

nalimilan
Copy link
Member

For stateful encodings, we need to copy the contents of the output buffer to the stream after calling iconv_reset!. Otherwise the bytes that may be written remain in the buffer. We als oneed to close from encode, which incidentally ensures that objects can be freed immediately.

Fix #49.

For stateful encodings, we need to copy the contents of the output buffer
to the stream after calling `iconv_reset!`. Otherwise the bytes that may
be written remain in the buffer. We als oneed to `close` from `encode`,
which incidentally ensures that objects can be freed immediately.
@codecov-commenter
Copy link

codecov-commenter commented Jun 20, 2021

Codecov Report

Merging #50 (9c98861) into master (d102671) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   91.51%   91.55%   +0.03%     
==========================================
  Files           2        2              
  Lines         224      225       +1     
==========================================
+ Hits          205      206       +1     
  Misses         19       19              
Impacted Files Coverage Δ
src/StringEncodings.jl 91.66% <100.00%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d102671...9c98861. Read the comment docs.

@nalimilan nalimilan merged commit d231108 into master Jun 21, 2021
@nalimilan nalimilan deleted the nl/shiftjis branch June 21, 2021 12:18
@nalimilan
Copy link
Member Author

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

Successfully merging this pull request may close these issues.

Empty output from encode()
2 participants