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! ]