Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: wide codecv...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 9577 of 9775
Post > Topic >>

Re: wide codecvt not used unless sync_with_stdio(false)

by "sebor@[EMAIL PROTECTED] " <sebor@[EMAIL PROTECTED] > May 9, 2008 at 09:15 AM

> The "Standard C++ IOStreams and Locales" [Langer&Kreft] state "The first
> operation that is performed on a C file determines its orientation"
> (page 59) meaning: deciding between narrow and wide output. As I'm not
> using the stdio here, sould sync_with_stdio possibly affect the use of a
> code conversion facet?

Unfortunately, the spec doesn't say what kind of streambuf the
standard
stream objects (cout et al) use, so how or even if they do character
conversion is unspecified. Some implementations (such as the Apache C+
+
Standard Library) use filebuf and will perform codeset conversion on
output to stdout the same way they do when writing to a file, others
use some other class and behave differently. You might get a better
answer from the vendor or maintainer of the implementation you're
using (gcc perhaps?)

-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 3 Posts in Topic:
wide codecvt not used unless sync_with_stdio(false)
Frank Birbacher <blood  2008-05-07 11:43:28 
Re: wide codecvt not used unless sync_with_stdio(false)
Oncaphillis <ocaphilli  2008-05-08 21:30:56 
Re: wide codecvt not used unless sync_with_stdio(false)
"sebor@[EMAIL PROTEC  2008-05-09 09:15:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Jul 8 23:43:12 CDT 2008.