This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11389] Unbuffered wfilebuf fails to read single-byte UTF-8 characters.
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2003 09:23:42 -0000
- Subject: [Bug libstdc++/11389] Unbuffered wfilebuf fails to read single-byte UTF-8 characters.
- References: <20030701092022.11389.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11389
------- Additional Comments From peturr02 at ru dot is 2003-07-01 09:23 -------
Created an attachment (id=4314)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4314&action=view)
Test case
This file contains 4 tests. Tests 1 and 2 show that buffered wfilebuf handles
short files containing only single-byte characters. Test 3 and 4 show that
unbuffered wfilebuf can read a single character from such a file, but not any
more.