public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/4145: codecvt<char, char, mbstate_t>::id on solaris, others
@ 2002-04-05 11:49 bkoz
  0 siblings, 0 replies; 2+ messages in thread
From: bkoz @ 2002-04-05 11:49 UTC (permalink / raw)
  To: bkoz, bkoz, gcc-bugs, gcc-prs, mmartin, nobody

Synopsis: codecvt<char, char, mbstate_t>::id on solaris, others

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Fri Apr  5 11:49:43 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->closed
State-Changed-By: bkoz
State-Changed-When: Fri Apr  5 11:49:43 2002
State-Changed-Why:
    I don't think this is a bug in the C++ library. ISO C++ requires mbstate_t to be defined in cwchar: it's not in Solaris 2.7, __mbstate_t is. That's the heart of your problem.
    
    Note that Sun fixed their headers for Solaris 2.8:
    
    #if !defined(_MBSTATE_T) || __cplusplus >= 199711L
    #define _MBSTATE_T
    typedef __mbstate_t     mbstate_t;
    #endif  /* _MBSTATE_T */
    
    Because this type isn't defined, libstdc++ defines its own, replacement type. This, while not optimal, is acceptable.
    
    You see to want to use the native type. That's cool, but hack the Solaris wchar.h header instead of libstdc++. I believe the linkage problems you have are all of your own devising. 
    
    Note that wide character support is not turned on by default on Solaris 2.7 for precisely these reasons, so the issue is kind of moot (as codecvt<char, char, mbstate_t> is a no-op)
    
    best,
    benjamin

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4145


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

* libstdc++/4145: codecvt<char, char, mbstate_t>::id on solaris, others
@ 2001-08-27 11:36 bkoz
  0 siblings, 0 replies; 2+ messages in thread
From: bkoz @ 2001-08-27 11:36 UTC (permalink / raw)
  To: gcc-gnats; +Cc: mmartin

>Number:         4145
>Category:       libstdc++
>Synopsis:       codecvt<char, char, mbstate_t>::id on solaris, others
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 27 11:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     mmartin@integratedeconomics.com
>Release:        gcc-3
>Organization:
>Environment:
solaris
>Description:
http://gcc.gnu.org/ml/gcc-bugs/2001-08/msg00839.html
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-04-05 19:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 11:49 libstdc++/4145: codecvt<char, char, mbstate_t>::id on solaris, others bkoz
  -- strict thread matches above, loose matches on Subject: below --
2001-08-27 11:36 bkoz

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