[jira] Updated: (STDCXX-333) [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character from a 1 byte file

2007-12-09 Thread Martin Sebor (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Sebor updated STDCXX-333:



I can't reproduce this with gcc 4.1.2 on Fedora Core 6, x86.

> [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character from a 1 byte 
> file
> -
>
> Key: STDCXX-333
> URL: https://issues.apache.org/jira/browse/STDCXX-333
> Project: C++ Standard Library
>  Issue Type: Bug
>  Components: 27. Input/Output
>Affects Versions: 4.1.3
> Environment: gcc 3.2.3 on Linux
>Reporter: Mark Brown
>Assignee: Martin Sebor
>Priority: Minor
>
> I get an an abort when I run the following program on Linux.
> #include 
> #include 
> #include 
> int main ()
> {
> {
> std::filebuf fb;
> fb.open ("file", std::ios::out);
> fb.sputc ('a');
> }
> std::wfilebuf fb;
> fb.pubimbue (std::locale ("en_US.UTF-8"));
> fb.open ("file", std::ios::in);
> const int c[] = { fb.sbumpc (), fb.sgetc () };
> std::cout << c [0] << ' ' << c [1] << std::endl;
> assert (L'a' == c [0]);
> assert (std::wfilebuf::traits_type::eof () == c [1]);
> }
> test: test.cpp:21: int main(): Assertion `std::wfilebuf::traits_type::eof () 
> == c [1]' failed.
> Aborted

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (STDCXX-333) [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character from a 1 byte file

2007-12-09 Thread Martin Sebor (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Sebor updated STDCXX-333:


Severity: Incorrect Behavior

Set Severity to Incorrect Behavior.

> [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character from a 1 byte 
> file
> -
>
> Key: STDCXX-333
> URL: https://issues.apache.org/jira/browse/STDCXX-333
> Project: C++ Standard Library
>  Issue Type: Bug
>  Components: 27. Input/Output
>Affects Versions: 4.1.3
> Environment: gcc 3.2.3 on Linux
>Reporter: Mark Brown
>Assignee: Martin Sebor
>Priority: Minor
>
> I get an an abort when I run the following program on Linux.
> #include 
> #include 
> #include 
> int main ()
> {
> {
> std::filebuf fb;
> fb.open ("file", std::ios::out);
> fb.sputc ('a');
> }
> std::wfilebuf fb;
> fb.pubimbue (std::locale ("en_US.UTF-8"));
> fb.open ("file", std::ios::in);
> const int c[] = { fb.sbumpc (), fb.sgetc () };
> std::cout << c [0] << ' ' << c [1] << std::endl;
> assert (L'a' == c [0]);
> assert (std::wfilebuf::traits_type::eof () == c [1]);
> }
> test: test.cpp:21: int main(): Assertion `std::wfilebuf::traits_type::eof () 
> == c [1]' failed.
> Aborted

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (STDCXX-333) [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character from a 1 byte file

2007-08-23 Thread Martin Sebor (JIRA)

 [ 
https://issues.apache.org/jira/browse/STDCXX-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Martin Sebor updated STDCXX-333:


Summary: [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character 
from a 1 byte file  (was: Linux] std::wfilebuf extracts more than 1 character 
from a 1 byte file)

> [gcc 3.2.3/Linux] std::wfilebuf extracts more than 1 character from a 1 byte 
> file
> -
>
> Key: STDCXX-333
> URL: https://issues.apache.org/jira/browse/STDCXX-333
> Project: C++ Standard Library
>  Issue Type: Bug
>  Components: 27. Input/Output
>Affects Versions: 4.1.3
> Environment: gcc 3.2.3 on Linux
>Reporter: Mark Brown
>Assignee: Martin Sebor
>Priority: Minor
>
> I get an an abort when I run the following program on Linux.
> #include 
> #include 
> #include 
> int main ()
> {
> {
> std::filebuf fb;
> fb.open ("file", std::ios::out);
> fb.sputc ('a');
> }
> std::wfilebuf fb;
> fb.pubimbue (std::locale ("en_US.UTF-8"));
> fb.open ("file", std::ios::in);
> const int c[] = { fb.sbumpc (), fb.sgetc () };
> std::cout << c [0] << ' ' << c [1] << std::endl;
> assert (L'a' == c [0]);
> assert (std::wfilebuf::traits_type::eof () == c [1]);
> }
> test: test.cpp:21: int main(): Assertion `std::wfilebuf::traits_type::eof () 
> == c [1]' failed.
> Aborted

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.