public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Kirwan, Brian" <bkirwan@accuris.ie>
To: 'Rupert Wood' <me@rupey.net>, "Kirwan, Brian" <bkirwan@accuris.ie>
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	[thread overview]
Message-ID: <577D56F824BAD411A1230008C728534AC58810@dublin.accuris.ie> (raw)
Message-ID: <20011129034100.vghPj8fj2sEckZEjL5PRMRtwQEScvK60o-Ih-k2RkcI@z> (raw)

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.
> 

             reply	other threads:[~2001-11-29  3:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-22  5:47 Kirwan, Brian [this message]
2001-11-29  3:41 ` Kirwan, Brian
  -- strict thread matches above, loose matches on Subject: below --
2001-11-22  4:17 Kirwan, Brian
2001-11-22  5:23 ` Rupert Wood
2001-11-29  2:35   ` Rupert Wood
2001-11-29  2:21 ` Kirwan, Brian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=577D56F824BAD411A1230008C728534AC58810@dublin.accuris.ie \
    --to=bkirwan@accuris.ie \
    --cc=gcc-help@gcc.gnu.org \
    --cc=me@rupey.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).