From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6303 invoked by alias); 29 Nov 2001 11:41:10 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 6244 invoked from network); 29 Nov 2001 11:41:04 -0000 Received: from unknown (HELO mail.accuris.ie) (195.7.42.139) by hostedprojects.ges.redhat.com with SMTP; 29 Nov 2001 11:41:04 -0000 Received: from dublin.accuris.ie (unverified) by mail.accuris.ie (Content Technologies SMTPRS 4.1.5) with ESMTP id ; Thu, 29 Nov 2001 11:47:52 +0000 Received: by dublin.accuris.ie with Internet Mail Service (5.5.2653.19) id ; Thu, 29 Nov 2001 11:36:01 -0000 Message-ID: <577D56F824BAD411A1230008C728534AC58810@dublin.accuris.ie> From: "Kirwan, Brian" To: 'Rupert Wood' , "Kirwan, Brian" Cc: gcc-help@gcc.gnu.org Subject: RE: Missing basic wide char/wide string handling functions Date: Thu, 22 Nov 2001 05:47:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2001-11/txt/msg00208.txt.bz2 Hi Rupert, Thanks for your quick respose. You're right - I'm on Solaris. Its 2.6 whose wchar.h doesnt have wprintf. I've checked a 2.8 machine and you're right - its wchar.h does have it. So, Solaris 2.8's C library supports it. But, as for the C++ side (which I would prefer), shouldnt GCC's iostream support wcout (which it doesnt seem to do)? Thanks very much, Brian. > -----Original Message----- > From: Rupert Wood [mailto:me@rupey.net] > Sent: 29 November 2001 10:36 > To: 'Kirwan, Brian' > Cc: gcc-help@gcc.gnu.org > Subject: RE: Missing basic wide char/wide string handling functions > > > Brian Kirwan wrote: > > > I'm building an application that needs to handle unicode strings and > > therefore need wide char/string handling functions. In gcc, I CAN > > find the corresponding CONVERSION functions (e.g., mbstowcs, > > wcstombs, etc.) but I CANNOT find the BASIC wide string handling > > functions, i.e., wcout, wstrcat, etc. (nor wprintf, etc in the C > > library). > > GCC makes a few POSIX-like fixes to the system header files, > but the set > of functions you have really depends on the C library you're using and > not on the compiler. > > That said, it sounds like you're using a Sun box. Certainly Solaris > 2.8's system C library has wprintf in wchar.h (try 'man wprintf') but > I'm not sure how many Solaris versions back that goes. > > Hope that helps, > Rup. > From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Kirwan, Brian" To: 'Rupert Wood' , "Kirwan, Brian" Cc: gcc-help@gcc.gnu.org Subject: RE: Missing basic wide char/wide string handling functions Date: Thu, 29 Nov 2001 03:41:00 -0000 Message-ID: <577D56F824BAD411A1230008C728534AC58810@dublin.accuris.ie> X-SW-Source: 2001-11/msg00291.html Message-ID: <20011129034100.vghPj8fj2sEckZEjL5PRMRtwQEScvK60o-Ih-k2RkcI@z> Hi Rupert, Thanks for your quick respose. You're right - I'm on Solaris. Its 2.6 whose wchar.h doesnt have wprintf. I've checked a 2.8 machine and you're right - its wchar.h does have it. So, Solaris 2.8's C library supports it. But, as for the C++ side (which I would prefer), shouldnt GCC's iostream support wcout (which it doesnt seem to do)? Thanks very much, Brian. > -----Original Message----- > From: Rupert Wood [ mailto:me@rupey.net ] > Sent: 29 November 2001 10:36 > To: 'Kirwan, Brian' > Cc: gcc-help@gcc.gnu.org > Subject: RE: Missing basic wide char/wide string handling functions > > > Brian Kirwan wrote: > > > I'm building an application that needs to handle unicode strings and > > therefore need wide char/string handling functions. In gcc, I CAN > > find the corresponding CONVERSION functions (e.g., mbstowcs, > > wcstombs, etc.) but I CANNOT find the BASIC wide string handling > > functions, i.e., wcout, wstrcat, etc. (nor wprintf, etc in the C > > library). > > GCC makes a few POSIX-like fixes to the system header files, > but the set > of functions you have really depends on the C library you're using and > not on the compiler. > > That said, it sounds like you're using a Sun box. Certainly Solaris > 2.8's system C library has wprintf in wchar.h (try 'man wprintf') but > I'm not sure how many Solaris versions back that goes. > > Hope that helps, > Rup. >