From owner-freebsd-current@FreeBSD.ORG Thu May 31 21:32:41 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D505416A41F for ; Thu, 31 May 2007 21:32:41 +0000 (UTC) (envelope-from faber@ISI.EDU) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.freebsd.org (Postfix) with ESMTP id B869413C44B for ; Thu, 31 May 2007 21:32:41 +0000 (UTC) (envelope-from faber@ISI.EDU) Received: from hut.isi.edu (hut.isi.edu [128.9.168.160]) by boreas.isi.edu (8.13.8/8.13.8) with ESMTP id l4VLWEYH000395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 31 May 2007 14:32:14 -0700 (PDT) Received: (from faber@localhost) by hut.isi.edu (8.14.1/8.14.1/Submit) id l4VLWEio081224 for current@freebsd.org; Thu, 31 May 2007 14:32:14 -0700 (PDT) (envelope-from faber) Date: Thu, 31 May 2007 14:32:13 -0700 From: Ted Faber To: current@freebsd.org Message-ID: <20070531213213.GH1373@hut.isi.edu> References: <20070531203430.GC1373@hut.isi.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rnP2AJ7yb1j09OW/" Content-Disposition: inline In-Reply-To: <20070531203430.GC1373@hut.isi.edu> User-Agent: Mutt/1.4.2.2i X-url: http://www.isi.edu/~faber X-ISI-4-43-8-MailScanner: Found to be clean X-MailScanner-From: faber@hut.isi.edu Cc: Subject: Re: glibmm exceptions broken after recent upgrades on CURRENT (debug info included) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 May 2007 21:32:41 -0000 --rnP2AJ7yb1j09OW/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 31, 2007 at 01:34:30PM -0700, Ted Faber wrote: > I've attached a short example that exhibits the problem and a dump of > the stack trace from gdb. All this is a pretty recent -CURRENT and new > ports.=20 The example code doesn't seem to have made it. Sorry, it's here. #include #include #include using namespace std; int main(int argc, char **argv) { string s; char ss[2] =3D { static_cast(0xe9), static_cast(0x00) }; setlocale(LC_ALL, "en_US.UTF-8"); Glib::init(); Glib::get_charset(s); cout << s << endl; cout << ss << endl; try { Glib::ustring us =3D Glib::locale_to_utf8(ss); cout << us << endl; } catch (Glib::ConvertError &ge) { cerr << "error" << endl; } catch (Glib::Error &ge) { cerr << "error" << endl; } } --=20 Ted Faber http://www.isi.edu/~faber PGP: http://www.isi.edu/~faber/pubkeys.= asc Unexpected attachment on this mail? See http://www.isi.edu/~faber/FAQ.html#= SIG --rnP2AJ7yb1j09OW/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGXz7daUz3f+Zf+XsRAj1zAKC8oU6s5cvJ5LBvEHRGgMF4D9k7/gCdHAUo rEtY9hPUtMHSPuy4uXeL00Y= =YzxQ -----END PGP SIGNATURE----- --rnP2AJ7yb1j09OW/--