From -4526751688480123438
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f78e5,35a35bec39c95517
X-Google-Attributes: gidf78e5,public
X-Google-ArrivalTime: 2001-03-19 04:30:58 PST
Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
From: "Andrea Ferro" <AndreaF@UrkaDVD.it>
Newsgroups: comp.std.c++
Subject: Re: wchar & Unicode
Date: Mon, 19 Mar 2001 12:28:17 GMT
Organization: Urka s.r.l.
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <994li5$74k$1@serv1.iunet.it>
References: <remove.haberg-1503011129330001@du130-226.ppp.su-anst.tninet.se> <98st13$rob$1@serv1.iunet.it> <slrn9b4s42.g58.qrczak@qrnik.zagroda>
X-Trace: mail2news.demon.co.uk 985004911 mail2news:25136 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!mulga.cs.mu.oz.au
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
NNTP-Posting-Date: 19 Mar 2001 10:03:49 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Lines: 41
Xref: supernews.google.com comp.std.c++:3923

"Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl> wrote in message
news:slrn9b4s42.g58.qrczak@qrnik.zagroda...
Fri, 16 Mar 2001 19:43:25 GMT, Andrea Ferro <AndreaF@UrkaDVD.it> pisze:
>
>> And specifically if the implementation is to support all your
>> cases then wchar_t will be a signed or unsigned 32 bit integral
>> (that may be int, unsigned, long or unsigned long depending on
>> the implementation.
>
>No, in C++ wchar_t is a keyword which denotes a distinct type.
>In C wchar_t may be e.g. a typedef for int.

Right. I wanted to say it would be "like" one of those. It is distinct BUT must
match another integral in its signedness and size.

>Fri, 16 Mar 2001 11:02:26 GMT, Ron Natalie <ron@sensor.com> pisze:
>
>> All the implementations I've dealt with use the 16 bit encoding
>> for unicode (i.e. wchar_t is unsigned short).
>
>On Linux wchar_t has 32 bits.

I would not say it this way. Linux is a platform not a C++ implementation. It
would be more correct "on the Linux version of compiler xyz ..."


Andrea Ferro

---------
Brainbench C++ Master. Scored higher than 97% of previous takers
Scores: Overall 4.46, Conceptual 5.0, Problem-Solving 5.0
More info http://www.brainbench.com/transcript.jsp?pid=2522556



---
[ 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://www.research.att.com/~austern/csc/faq.html                ]



