This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: _GLIBCPP_USE_WCHAR_T undefined in FreeBSD's c++config.h?


On Wed, Feb 19, 2003 at 01:45:44PM -0600, Benjamin Kosnik wrote:
> 
> >FreeBSD does not implement iconv family functions in the base system, it
> >has a WCHAR_MIN/WCHAR_MAX constants defined in a wrong header and wcstof
> >function is not committed yet. These three prevent libstdc++ configure
> >from enabling wchar_t instantiations.
> 
> Thanks, this was very informative. It's great news that this is so close
> to working on FreeBSD.

And in the meantime...


2003-02-20  Phil Edwards  <pme at gcc dot gnu dot org>

	* docs/html/faq/index.html (3.9):  New note, wchar_t on FreeBSD.
	* docs/html/faq/index.txt:  Regenerate.


Index: docs/html/faq/index.html
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/docs/html/faq/index.html,v
retrieving revision 1.51
diff -u -3 -p -r1.51 index.html
--- docs/html/faq/index.html	3 Feb 2003 16:47:44 -0000	1.51
+++ docs/html/faq/index.html	20 Feb 2003 17:55:43 -0000
@@ -73,6 +73,7 @@
          <li><a href="#3_6">OS X ctype.h is broken!  How can I hack it?</a></li>
          <li><a href="#3_7">Threading is broken on i386</a></li>
          <li><a href="#3_8">Recent GNU/Linux glibc required?</a></li>
+         <li><a href="#3_9">Can't use wchar_t/wstring on FreeBSD</a></li>
       </ol>
    </li>
 
@@ -520,7 +521,23 @@ which is no longer available, thanks dej
          glibc version 2.3.x available now.
       </p>
       <p>The guideline is simple:  the more recent the C++ library, the
-         more recent the C library.
+         more recent the C library.  (This is also documented in the main
+         GCC installation instructions.)
+      </p>
+
+<hr />
+   <h2><a name="3_9">3.9 Can't use wchar_t/wstring on FreeBSD</a></h2>
+      <p>At the moment there are a few problems in FreeBSD's support for
+         wide character functions, and as a result the libstdc++ configury
+         decides that wchar_t support should be disabled.  Once the underlying
+         problems are fixed in FreeBSD (soon), the library support will
+         automatically enable itself.
+      </p>
+      <p>You can fix the problems yourself, and learn more about the situation,
+         by reading
+         <a href="http://gcc.gnu.org/ml/libstdc++/2003-02/subjects.html#00286";>
+         this short thread</a> (&quot;_GLIBCPP_USE_WCHAR_T undefined in
+         FreeBSD's c++config.h?&quot;).
       </p>
 
 <hr />


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]