From 1191633817065928709
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc772,f348d4ffcc15eb56
X-Google-Attributes: gidfc772,public
X-Google-Thread: f78e5,f348d4ffcc15eb56
X-Google-Attributes: gidf78e5,public
X-Google-Thread: 109fba,f348d4ffcc15eb56
X-Google-Attributes: gid109fba,public
From: Mark Levis <mlevis@bigfoot.com>
Subject: Re: Unicode via wofstream:   What am I doing wrong?
Date: 1999/03/19
Message-ID: <36F0DC7D.84AE8675@bigfoot.com>#1/1
X-Deja-AN: 456526903
Approved: kuehl@fmi.uni-konstanz.de
Sender: cppmods@netlab.cs.rpi.edu
References: <7cp2ef$oi1$1@news.jump.net>
X-Submission-Address: c++-submit@netlab.cs.rpi.edu
X-Approved-For-Group: Fergus Henderson <fjh@cs.mu.oz.au> comp.std.c++
X-Original-Date: 19 Mar 99 07:28:43 GMT
Organization: mark_levis@compuware.com
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated iQBVAwUANvJyVkHMCo9UcraBAQFqdAH/axFNzMJQvbpv2ZZZMLNxDKiaYoXeuYZ1 1EjX5P2Zc4h1vqWPuWHX6mW8jSlMAW5wov8+3XQr99zGS5RAx3pbng== =ks3D
Reply-To: mlevis@bigfoot.com
Newsgroups: comp.lang.c++.moderated,comp.lang.c++,comp.std.c++

John Zoch wrote:
> 
> I'm going nuts trying to figure this one out.  the output of the the
> following code only puts 'A' and 'B' in the file unicode.txt and they aren't
> wide.  Any ideas?
> 
> Thanks for your help.
> 
> -John
> void main()

int main() The standard requires this!
> {
>  wchar_t unichar;
> 
>  std::wofstream fout;
>  fout.open("unicode.txt");
> 
[snip]
>  unichar = 267; //Some Unicode character.
>  fout << unichar;

Are you sure this is a valid character? character 0 - 255 wide char 
may be more though.

Try asking unicode questions on microsoft.public.vc.*

[snip]
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]




