public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Missing basic wide char/wide string handling functions
@ 2001-11-22  4:17 Kirwan, Brian
  2001-11-22  5:23 ` Rupert Wood
  2001-11-29  2:21 ` Kirwan, Brian
  0 siblings, 2 replies; 6+ messages in thread
From: Kirwan, Brian @ 2001-11-22  4:17 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'; +Cc: Kirwan, Brian

Hi,

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

I've tried building various different versions from source (2.95.3, 3.0,
3.0.1, 3.0.2) and I've also downloaded the pre-built versions from the Sun
freeware site but none of them seem to support these basic functions.

I would be very grateful if someone could let me know if either:

*	these functions arent supported
*	I need to build/configure gcc some other way to get them
*	maybe they have some other slightly different name in gcc(?)

Thanks in advance,
Brian Kirwan,
Accuris Limited,
East Point Business Park,
Dublin 3,
Ireland. 
Tel: +353-1-8875532 
email: bkirwan@accuris.ie
Web: www.accuris.ie <http://www.accuris.ie/>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Missing basic wide char/wide string handling functions
  2001-11-22  4:17 Missing basic wide char/wide string handling functions Kirwan, Brian
@ 2001-11-22  5:23 ` Rupert Wood
  2001-11-29  2:35   ` Rupert Wood
  2001-11-29  2:21 ` Kirwan, Brian
  1 sibling, 1 reply; 6+ messages in thread
From: Rupert Wood @ 2001-11-22  5:23 UTC (permalink / raw)
  To: 'Kirwan, Brian'; +Cc: gcc-help

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Missing basic wide char/wide string handling functions
  2001-11-22  4:17 Missing basic wide char/wide string handling functions Kirwan, Brian
  2001-11-22  5:23 ` Rupert Wood
@ 2001-11-29  2:21 ` Kirwan, Brian
  1 sibling, 0 replies; 6+ messages in thread
From: Kirwan, Brian @ 2001-11-29  2:21 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'; +Cc: Kirwan, Brian

Hi,

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

I've tried building various different versions from source (2.95.3, 3.0,
3.0.1, 3.0.2) and I've also downloaded the pre-built versions from the Sun
freeware site but none of them seem to support these basic functions.

I would be very grateful if someone could let me know if either:

*	these functions arent supported
*	I need to build/configure gcc some other way to get them
*	maybe they have some other slightly different name in gcc(?)

Thanks in advance,
Brian Kirwan,
Accuris Limited,
East Point Business Park,
Dublin 3,
Ireland. 
Tel: +353-1-8875532 
email: bkirwan@accuris.ie
Web: www.accuris.ie < http://www.accuris.ie/ >

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Missing basic wide char/wide string handling functions
  2001-11-22  5:23 ` Rupert Wood
@ 2001-11-29  2:35   ` Rupert Wood
  0 siblings, 0 replies; 6+ messages in thread
From: Rupert Wood @ 2001-11-29  2:35 UTC (permalink / raw)
  To: 'Kirwan, Brian'; +Cc: gcc-help

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Missing basic wide char/wide string handling functions
  2001-11-22  5:47 Kirwan, Brian
@ 2001-11-29  3:41 ` Kirwan, Brian
  0 siblings, 0 replies; 6+ messages in thread
From: Kirwan, Brian @ 2001-11-29  3:41 UTC (permalink / raw)
  To: 'Rupert Wood', Kirwan, Brian; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: Missing basic wide char/wide string handling functions
@ 2001-11-22  5:47 Kirwan, Brian
  2001-11-29  3:41 ` Kirwan, Brian
  0 siblings, 1 reply; 6+ messages in thread
From: Kirwan, Brian @ 2001-11-22  5:47 UTC (permalink / raw)
  To: 'Rupert Wood', Kirwan, Brian; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-11-29 11:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-22  4:17 Missing basic wide char/wide string handling functions Kirwan, Brian
2001-11-22  5:23 ` Rupert Wood
2001-11-29  2:35   ` Rupert Wood
2001-11-29  2:21 ` Kirwan, Brian
2001-11-22  5:47 Kirwan, Brian
2001-11-29  3:41 ` Kirwan, Brian

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