[Bug libstdc++/10535] cygwin _GLIBCPP_USE_WCHAR_T undefined

support@isiuk.com gcc-bugzilla@gcc.gnu.org
Mon Jun 16 09:11:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10535



------- Additional Comments From support@isiuk.com  2003-06-16 09:08 -------
Subject: RE:  cygwin _GLIBCPP_USE_WCHAR_T undefined

Apologies for not updating I have been offline for a while. i have some more
info as follows:

The wchar_t specialisations will never work with Cygwin / MinGW in their
present form because there is a fundamental problem with wide-character
support in the underlying Win32 API dlls, even with all the missing
functions available. These problems have been reported to the relevant
developers and are still open issues. Therefore, so far as the original
reason for open the report is concerned there is really nothing the GNU C++
Standard Library team can do.

I have done some other experiments on some other systems as follows:

So far as HPUX and Sun are concerned, I believe the problem lies in the
versions of the Standard C Library used. If the Standard C Library
implementation does *not* have *all* the C99 wide-character variants
available then the wchar_t specialisations are not properly defined.
Typically, it is the wide-character specialisations of the vsprint functions
which are missing. This problem does not occur on Red Hat Linux as their
Standard C Library has all the relevant files, nor does it occur with the
latest version of the GNU Standard C Library.

I do not know whether this is a bug with the configure script or not, but
even just *one* missing function will cause the wchar_t specialisations to
fail. Looking at the code for the wchar_t specialisations, I see no reason
why *all* the C99 wide-character variants are needed. Of course, the
implementors are free to require C99 if they so wish as this is explicitly
allowed by the C++ Standard.

To conclude, I don't think this is a bug anymore and we could put it down to
standard-conformance issue on the different platforms.

Best Regards,
James Bannon
Helpdesk Manager
ISI Solutions Limited
T: 0845 6090031
F: 01698 543001



-----Original Message-----
From: pinskia@physics.uc.edu [mailto:gcc-bugzilla@gcc.gnu.org]
Sent: Friday, June 13, 2003 7:01 PM
To: support@isiuk.com
Subject: [Bug libstdc++/10535] cygwin _GLIBCPP_USE_WCHAR_T undefined


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10535



------- Additional Comments From pinskia@physics.uc.edu  2003-06-13 18:00
-------
This is related to bug 10041 which is for HPUX and bug 6702 which is for
solaris.



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gcc-bugs mailing list