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

add new read_chars method, incidentally fix bug in old read_char method #1468

Closed
wants to merge 3 commits into from
Closed

Conversation

grahame
Copy link
Contributor

@grahame grahame commented Jan 8, 2012

having a read_chars method is convenient and more efficient.
the old read_char method had a bug due to re-use of the 'w' width variable as a loop counter and so was broken for wide characters, this patch fixes that.

(I cancelled the last pull request as I tidied the code up further.)

Grahame Bowland added 3 commits January 8, 2012 03:02
This change also fixes a bug in the old read_char method with
multi-byte utf8 characters, due to re-use of 'w' variable as a loop
counter.
@grahame grahame closed this Jan 8, 2012
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.

1 participant