Re: orca and encoding problem



Hi,

Olivier BERT, le Tue 11 Apr 2006 16:08:14 +0200, a écrit :
> On Tue, Apr 11, 2006 at 02:15:50PM +0200, Samuel Thibault wrote:
> > It looks like orca doesn't care about charsets. If it always gets UTF-8
> > text, brl_module_writeText() should rather do
> > 
> > 	if (brl_initialized) {
> > 		brlapi_writeStruct ws = BRLAPI_WRITESTRUCT_INITIALIZER;
> > 		ws.text = str;
> > 		ws.charset = "UTF-8";
> > 		ws.cursor = cursor;
> > 		brlapi_write(&ws);
> > 	}
> > 
> > BTW, orca doesn't check the result of brlapi_*() function. It should, and
> > call brlapi_perror() on errors.
> 
> I didn't understand really if it was a brlapi problem or an orca problem 

The problem is that orca doesn't tell brlapi the charset of the text.
Brlapi then defaults to the charset of the current locale, which is
fr_FR euro hence ISO-8859-15 on your box, I guess.

An easy way to fix it for now is to use an UTF-8 locale for running
orca:
LANG=fr_FR.UTF-8 orca

Regards,
Samuel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]