delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <79218202D4B9D4118A290002A508E13B79C3CA@pnzexchange.pharos-intranet.co.nz> |
From: | Ross Smith <rosss AT pharos DOT co DOT nz> |
To: | "'Alex Vinokur'" <alexvn AT connect DOT to>, cygwin AT cygwin DOT com |
Cc: | gcc-help AT gcc DOT gnu DOT org |
Subject: | RE: Problem with wchar_t |
Date: | Wed, 23 Apr 2003 08:34:05 +1200 |
MIME-Version: | 1.0 |
> From: Alex Vinokur [mailto:alexvn AT connect DOT to] > > wchar_t wch1 = 65; > > Why does 'cout << wch1' print '65' (but not 'A') ? Because you're trying to write a wide character to a narrow character stream. To get 'A', you'd need to write it to wcout instead of cout. But you'll find you can't do that anyway, because Cygwin doesn't support wide characters (it has the wchar_t type, but not much else). -- Ross Smith ...................... Pharos Systems, Auckland, New Zealand "It's never too soon to start planning, and, in fact, it's usually too late." -- Chad Orzel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |