graydon/rust — pull request #1456 by grahame (2012-01-07 19:05:51+00:00)
Title: This adds a new read_chars method which seems like a convenient addition, and ought to be more efficient when reading large files. It also fixes a bug in read_char.

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.