Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix handling of Shift_JISx0213 #50

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

Merged
nalimilan merged 3 commits into master from nl/shiftjis
Jun 21, 2021
Merged

Fix handling of Shift_JISx0213 #50

nalimilan merged 3 commits into master from nl/shiftjis
Jun 21, 2021

Conversation

@nalimilan
Copy link
Member

@nalimilan nalimilan commented Jun 20, 2021

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.

tomyun reacted with thumbs up emoji
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.
Copy link

codecov-commenter commented Jun 20, 2021
edited
Loading

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
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Empty output from encode()

AltStyle によって変換されたページ (->オリジナル) /