Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Jul 2010 11:39:04 +0200
From:      Ruben Pollan <meskio@sindominio.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: locale problems with STL (C++)
Message-ID:  <20100701093903.GF2317@blackspot>
In-Reply-To: <20100620200252.GA2030@blackspot>
References:  <20100620200252.GA2030@blackspot>

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

--3oCie2+XPXTnK5a5
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I see no one in this list knows about that topic. Do someone knows where I =
can
ask? Are there another mailing list more focused on programming problems?

Thank you.

On 22:02, Sun 20 Jun 10, Ruben Pollan wrote:
> Hello,
>=20
> I'm new user of FreeBSD, using it as a desktop since a week. I develop an=
 small
> ncurses tool for manage todo lists[0]. Up to now I just used on GNU/Linux
> systems.
>=20
> I'm trying to compile it on FreeBSD, my original Makefiles seems to be too
> linux-like. I manage to compile it[1], but I have some problems with STL.=
 I read
> that there is a bug on libstdc++ and the locale[2] and gives a segfault, =
it
> seems to be still there.
>=20
> I try to compile it with stlport, it compiles without problems and runs w=
ithout
> segfault. But don't works with wide characters. I'm using locale to read =
files
> encoded on the local charset, like:
>=20
> wifstream file;
> file.imbue(locale(""));
> file.open(path);
> ...
>=20
> This code reads wrongly the wide characters. My system locale is:
>=20
> [meskio@blackspot:~]$ echo $LANG
> es_ES.UTF-8
>=20
> Am I missing something? I still don't understand well how locale works on=
 C++, it=20
> worked well on GNU/Linux.
>=20
> Any suggestion?
>=20
> Thank you.
>=20
>=20
>=20
> [0] http://cauterized.net/~meskio/tudu/
> [1] I have a branch 'freebsd' on the git repository that compiles on free=
bsd,
> needs devel/stlport: http://gitorious.org/tudu/tudu
> [2] http://gcc.gnu.org/ml/libstdc++/2005-04/msg00021.html



--=20
Rub=E9n Poll=E1n  | jabber:meskio@jabber.org
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-
Veo a un Mickey Mouse envejecido con=20
pasamonta=F1as tirando piedras a una oficina de=20
disney al grito, "Fui vuestro esclavo desde=20
1928 y he conquistado para vosotros millones=20
de corazones y ganado billones de d=F3lares,=20
=A1AHORA DEJADME SER LIBRE!"

--3oCie2+XPXTnK5a5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (FreeBSD)

iEYEARECAAYFAkwsYjcACgkQGKOQ92SwNMLq6wCeNTi+JKMxRID5imGZY06T9nq8
dn0Anjo6M6JLpy2RLGjoHK8tt/vo2TcV
=fqHQ
-----END PGP SIGNATURE-----

--3oCie2+XPXTnK5a5--



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