[Bug c++/35353] C++ wide character locale doesn't work

2008-02-24 Thread ivranos at freemail dot gr
--- Comment #1 from ivranos at freemail dot gr 2008-02-24 14:11 --- Created an attachment (id=15217) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15217action=view) The main.ii file produced by -save-temps option This is the file created by the g++ -v -save-temps -ansi

[Bug c++/35353] C++ wide character locale doesn't work

2008-02-24 Thread ivranos at freemail dot gr
--- Comment #2 from ivranos at freemail dot gr 2008-02-24 14:15 --- Created an attachment (id=15218) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15218action=view) The produced main.s file The main.s file produced by g++ -v -save-temps -ansi -pedantic-errors -Wall main.cc -o

[Bug c++/35353] C++ wide character locale doesn't work

2008-02-24 Thread pcarlini at suse dot de
--- Comment #3 from pcarlini at suse dot de 2008-02-24 14:18 --- Not a bug, given our implementation-defined behavior: the various cin / wcin, streams are by default synced with stdio (per the standard requirements) and thus not converting. You can either call sync_with_stdio(false)

[Bug c++/35353] C++ wide character locale doesn't work

2008-02-24 Thread ivranos at freemail dot gr
--- Comment #4 from ivranos at freemail dot gr 2008-02-24 14:23 --- Created an attachment (id=15219) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15219action=view) Screenshot of the standard I/O of the working code and of the non-working code. This screenshot shows the I/O of the

[Bug c++/35353] C++ wide character locale doesn't work

2008-02-24 Thread ivranos at freemail dot gr
--- Comment #5 from ivranos at freemail dot gr 2008-02-24 14:35 --- sync_with_stdio (false) doesn't work. Actually it crashes the code. Check the screenshot I have attached in the latest attachment, to see the difference between the C++ working code and the C++ non-working code. --

[Bug c++/35353] C++ wide character locale doesn't work

2008-02-24 Thread pcarlini at suse dot de
--- Comment #6 from pcarlini at suse dot de 2008-02-24 14:40 --- sync_with_stdio(false) works, and is tested dozens of times a day in our testsuites. And that is only half of my answer. Please understand what I said, study the details of the ISO C++ Standard and then come back. --