Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Buffer.write() should always set Buffer._charsWritten #1633

Closed
wants to merge 1 commit into from
Closed

Buffer.write() should always set Buffer._charsWritten #1633

wants to merge 1 commit into from

Conversation

koichik
Copy link

@koichik koichik commented Sep 2, 2011

With 'utf8' and 'ucs2', Buffer.write() sets Buffer._charsWritten property.
But with 'ascii', 'base64', 'binary' and 'hex' (only v0.5), write() doesn't set the property.

This patch for v0.4 branch.
I will fix for 'hex' encoding after v0.4 branch is merged to the master.

Please review.

@ry
Copy link

ry commented Sep 2, 2011

LGTM

@koichik
Copy link
Author

koichik commented Sep 3, 2011

Thanks!

koichik added a commit that referenced this pull request Sep 3, 2011
@bnoordhuis
Copy link
Member

@koichik: LGTM too, anything holding you back from merging this into master?

@koichik
Copy link
Author

koichik commented Sep 6, 2011

@ry
Copy link

ry commented Sep 8, 2011

@koichik - v0.4 has been merged in 52044fd

@koichik
Copy link
Author

koichik commented Sep 8, 2011

@ry - Thanks! I'm fixing 'hex' encoding.

@koichik koichik closed this in 526c54c Sep 8, 2011
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants