public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/12077] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
@ 2003-08-27 11:09 ` peturr02 at ru dot is
2003-10-01 20:05 ` paolo at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: peturr02 at ru dot is @ 2003-08-27 11:09 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
------- Additional Comments From peturr02 at ru dot is 2003-08-27 11:09 -------
Created an attachment (id=4660)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4660&action=view)
Test case
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high
@ 2003-08-27 11:09 peturr02 at ru dot is
2003-08-27 11:09 ` [Bug libstdc++/12077] " peturr02 at ru dot is
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: peturr02 at ru dot is @ 2003-08-27 11:09 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
Summary: wcin.rdbuf()->in_avail() return value too high
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: peturr02 at ru dot is
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
When stdin is bound to a regular file, wcin.rdbuf()->showmanyc() returns the
number of bytes in the file, which may be higher than the number of
characters in the file when using multibyte character sets such as utf-8.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
2003-08-27 11:09 ` [Bug libstdc++/12077] " peturr02 at ru dot is
@ 2003-10-01 20:05 ` paolo at gcc dot gnu dot org
2004-03-18 17:04 ` pcarlini at suse dot de
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-01 20:05 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
paolo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |paolo at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-01 20:05:35
date| |
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
2003-08-27 11:09 ` [Bug libstdc++/12077] " peturr02 at ru dot is
2003-10-01 20:05 ` paolo at gcc dot gnu dot org
@ 2004-03-18 17:04 ` pcarlini at suse dot de
2004-03-19 8:39 ` peturr02 at ru dot is
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-03-18 17:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-03-18 17:04 -------
... so, shall I add to stdio_sync_filebuf a non-trivial imbue and tweak
showmanyc consistently, similarly to basic_filebuf?!?
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
` (2 preceding siblings ...)
2004-03-18 17:04 ` pcarlini at suse dot de
@ 2004-03-19 8:39 ` peturr02 at ru dot is
2004-03-19 19:31 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: peturr02 at ru dot is @ 2004-03-19 8:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From peturr02 at ru dot is 2004-03-19 08:39 -------
> ... so, shall I add to stdio_sync_filebuf a non-trivial imbue and tweak
> showmanyc consistently, similarly to basic_filebuf?!?
There's no way to find out the conversion used by the underlying FILE*, so
the only reasonable thing to do is to return 0 from showmanyc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
` (3 preceding siblings ...)
2004-03-19 8:39 ` peturr02 at ru dot is
@ 2004-03-19 19:31 ` cvs-commit at gcc dot gnu dot org
2004-04-01 9:30 ` pcarlini at suse dot de
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-03-19 19:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-03-19 19:31 -------
Subject: Bug 12077
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: paolo@gcc.gnu.org 2004-03-19 19:31:38
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/ext: stdio_sync_filebuf.h
libstdc++-v3/testsuite/27_io/objects/char: 9.cc
Added files:
libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t: 12077.cc
Log message:
2004-03-19 Paolo Carlini <pcarlini@suse.de>
Petur Runolfsson <peturr02@ru.is>
PR libstdc++/12077
* include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
no way to find out the conversion used by the underlying FILE*.
* testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
* testsuite/27_io/objects/char/9.cc: Tweak.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.2409&r2=1.2410
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/stdio_sync_filebuf.h.diff?cvsroot=gcc&r1=1.7&r2=1.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/objects/char/9.cc.diff?cvsroot=gcc&r1=1.4&r2=1.5
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
` (4 preceding siblings ...)
2004-03-19 19:31 ` cvs-commit at gcc dot gnu dot org
@ 2004-04-01 9:30 ` pcarlini at suse dot de
2004-04-21 10:23 ` [Bug libstdc++/12077] [3.4 only] " cvs-commit at gcc dot gnu dot org
2004-04-21 10:43 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-04-01 9:30 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] [3.4 only] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
` (5 preceding siblings ...)
2004-04-01 9:30 ` pcarlini at suse dot de
@ 2004-04-21 10:23 ` cvs-commit at gcc dot gnu dot org
2004-04-21 10:43 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-04-21 10:23 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-04-21 09:59 -------
Subject: Bug 12077
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: paolo@gcc.gnu.org 2004-04-21 09:59:12
Modified files:
libstdc++-v3 : ChangeLog
libstdc++-v3/include/ext: stdio_sync_filebuf.h
libstdc++-v3/testsuite/27_io/objects/char: 9.cc
Added files:
libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t: 12077.cc
Log message:
2004-04-21 Paolo Carlini <pcarlini@suse.de>
Petur Runolfsson <peturr02@ru.is>
PR libstdc++/12077
* include/ext/stdio_sync_filebuf.h (showmanyc): Remove, there's
no way to find out the conversion used by the underlying FILE*.
* testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc: New.
* testsuite/27_io/objects/char/9.cc: Tweak.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.2224.2.77&r2=1.2224.2.78
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/include/ext/stdio_sync_filebuf.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.7&r2=1.7.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/ext/stdio_sync_filebuf/wchar_t/12077.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.2.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/27_io/objects/char/9.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.4&r2=1.4.4.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libstdc++/12077] [3.4 only] wcin.rdbuf()->in_avail() return value too high
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
` (6 preceding siblings ...)
2004-04-21 10:23 ` [Bug libstdc++/12077] [3.4 only] " cvs-commit at gcc dot gnu dot org
@ 2004-04-21 10:43 ` pcarlini at suse dot de
7 siblings, 0 replies; 9+ messages in thread
From: pcarlini at suse dot de @ 2004-04-21 10:43 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pcarlini at suse dot de 2004-04-21 10:00 -------
Fixed for 3.4.1.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12077
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2004-04-21 10:00 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-27 11:09 [Bug libstdc++/12077] New: wcin.rdbuf()->in_avail() return value too high peturr02 at ru dot is
2003-08-27 11:09 ` [Bug libstdc++/12077] " peturr02 at ru dot is
2003-10-01 20:05 ` paolo at gcc dot gnu dot org
2004-03-18 17:04 ` pcarlini at suse dot de
2004-03-19 8:39 ` peturr02 at ru dot is
2004-03-19 19:31 ` cvs-commit at gcc dot gnu dot org
2004-04-01 9:30 ` pcarlini at suse dot de
2004-04-21 10:23 ` [Bug libstdc++/12077] [3.4 only] " cvs-commit at gcc dot gnu dot org
2004-04-21 10:43 ` pcarlini at suse dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).