From owner-freebsd-standards Sun Dec 29 11:24:18 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7079437B401; Sun, 29 Dec 2002 11:24:16 -0800 (PST) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6948543ED8; Sun, 29 Dec 2002 11:24:15 -0800 (PST) (envelope-from corecode@corecode.ath.cx) Received: from fwd04.sul.t-online.de by mailout10.sul.t-online.com with smtp id 18Sj2j-0005LL-02; Sun, 29 Dec 2002 20:24:13 +0100 Received: from pride.uni.stoert.net (320050403952-0001@[217.224.160.80]) by fmrl04.sul.t-online.com with esmtp id 18Sj2S-1JS3BQC; Sun, 29 Dec 2002 20:23:56 +0100 Received: from terrorfish.uni.stoert.net (terrorfish.uni.stoert.net [10.150.180.178]) by pride.uni.stoert.net (Postfix) with ESMTP id 62A8C12CA75; Sun, 29 Dec 2002 20:23:52 +0100 (CET) Received: from terrorfish.uni.stoert.net (localhost [127.0.0.1]) by terrorfish.uni.stoert.net (8.12.6/8.12.6) with ESMTP id gBTJOR7B002264; Sun, 29 Dec 2002 20:24:27 +0100 (CET) (envelope-from corecode@terrorfish.uni.stoert.net) Received: (from corecode@localhost) by terrorfish.uni.stoert.net (8.12.6/8.12.6/Submit) id gBTJOQNp002263; Sun, 29 Dec 2002 20:24:26 +0100 (CET) Date: Sun, 29 Dec 2002 20:24:23 +0100 From: "Simon 'corecode' Schubert" To: current@freebsd.org Cc: standards@freebsd.org Subject: missing support for std::wstring breaks stuff on -CURRENT Message-Id: <20021229202423.0f2dcd73.corecode@corecode.ath.cx> X-Mailer: Sylpheed version 0.8.8claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.VXvdwvbYoLNg)J" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.VXvdwvbYoLNg)J Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit hello people, as several other people already noted -current doesn't support std::wstring. this is a real pitty as more and more programs tend to use this. you can test with this simple case: % cat wchar.cc #include int main(int, char *[]) { std::wstring test(L"test"); } % c++ wchar.cc wchar.cc: In function `int main(int, char**)': wchar.cc:6: syntax error before `(' token if programs use std::basic_string things will get worse: % cat wchar2.cc #include int main(int, char *[]) { std::basic_string test(L"test"); } % c++ wchar2.cc /tmp/ccKRNQn4.o: In function `std::basic_string, std::allocator >::basic_string(wchar_t const*, std::allocator const&)': /tmp/ccKRNQn4.o(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEEC1EPKwRKS1_+0x1f): undefined reference to `std::char_traits::length(wchar_t const*)' /tmp/ccKRNQn4.o: In function `std::basic_string, std::allocator >::_S_copy_chars(wchar_t*, wchar_t const*, wchar_t const*)': /tmp/ccKRNQn4.o(.gnu.linkonce.t._ZNSbIwSt11char_traitsIwESaIwEE13_S_copy_charsEPwPKwS5_+0x1c): undefined reference to `std::char_traits::copy(wchar_t*, wchar_t const*, unsigned)' this ain't no fun anymore (and furthermore prevents several program updates) would please somebody look into this case and explain why wchar_t support wasn't enabled? tim robins already provided a patch that will make stuff working. cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.VXvdwvbYoLNg)J Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+D0vqr5S+dk6z85oRAh5rAJ9vmRl666ZM29xv/G8VVYXeqhb7pwCg4F3Z SuqWny8kUe5VYafgrXpWOUc= =5+W0 -----END PGP SIGNATURE----- --=.VXvdwvbYoLNg)J-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message