Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 14:32:13 -0700
From:      Ted Faber <faber@ISI.EDU>
To:        current@freebsd.org
Subject:   Re: glibmm exceptions broken after recent upgrades on CURRENT (debug info included)
Message-ID:  <20070531213213.GH1373@hut.isi.edu>
In-Reply-To: <20070531203430.GC1373@hut.isi.edu>
References:  <20070531203430.GC1373@hut.isi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <iostream>
#include <string>

#include <glibmm.h>

using namespace std;

int main(int argc, char **argv) {
    string s;
    char ss[2] =3D { static_cast<char>(0xe9), static_cast<char>(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/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070531213213.GH1373>