To: lablgtk at kaba.or.jp Subject: Re: Problems using the new view widget From: Remi Vanicat Date: Fri, 11 Apr 2003 17:37:23 +0200 In-Reply-To: <20030411173230.62ead13e.maxence.guesdon at inria.fr> (Maxence Guesdon's message of "Fri, 11 Apr 2003 17:32:30 +0200") Message-ID: <87llyhqc3w.dlv at wanadoo.fr> References: <20030411152228.3a45a003.maxence.guesdon at inria.fr> <20030411154505.0a899eac.maxence.guesdon@inria.fr> <20030411161409.047b3143.maxence.guesdon@inria.fr> <87of3dqcpb.dlv@wanadoo.fr> <20030411152641.GA2621@iliana> <20030411173230.62ead13e.maxence.guesdon@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: Vanicat Remi Maxence Guesdon writes: > Remi Vanicat wrote: >> > > I had to change my LC_ALL to fr_FR to make it work. >> > > Hope it will help someone in the future. >> > >> > well, you could have use >> > Glib.Convert.convert "ma lettre accentuée é" ~to_codeset: "utf-8" >> > ~from_codeset: "ISO-8859-1" >> > >> > but in that case, you don't look to locale... > > Ok, but my application then becomes very specific, doesn't it ? > > >> > by the way, it best to leave LC_ALL untouched and to use LANG. > > Having LANG=fr_FR as not enough. I HAD to change LC_ALL :-( Well, you have to change LC_ALL if LC_ALL is already set. Otherwise, you should hate to. It worked here. > > > Then Sven Luther wrote: > >> BTW, would it not be better to have lablgtk2 call >> Glib.Convert.locale_to_utf8 by default each time it is necessary ? >> >> As ocaml don't use utf8 strings, but gtk+ apparently does. > > I agree. An utf8 type would prevent such runtime errors. Yes it seem a good idea. -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat