Hi Mantas

Your proposal looks like a hack for non-UTF-8 locales. Did you already
read the message of John Popplewell and Pablo Saratxaga (in Cc) ?

http://tux4kids.net/pipermail/tuxpaint-dev/2003-July/001033.html
http://tux4kids.net/pipermail/tuxpaint-i18n/2003-June/000232.html

Best regards,
Stefan

On Wed, Jul 09, 2003 at 05:06:34AM +0300, Mantas Kriaučiūnas wrote:
> Hi all,
> 
> John Popplewell wrote:
> > On Tuesday 08 July 2003 6:38 pm, Robert Glowczynski wrote:
> > > It seems that attached patch fixes this.
> > > RENDER_TEXT is defined as TTF_RenderText_Blended, I used
> > > TTF_RenderUTF8_Blended to display chars.
> > >
> > > Did TTF_RenderUTF8_Blended cause problems with other languages?
> >
> > unfortunately, changing TTF_RenderText_Blended to TTF_RenderUTF8_Blended
> > _does_ affect other languages: try --lang spanish and checkout the exit
> > dialog, the 'Si' is displayed as 'S' on both Win98 and Linux.
> >                                                                                   
> > Right now (sorry!) I don't have time to investigate,
> 
> Fortunately, problems with other languages can be solved very simply - 
> just do same things with each language like Robert Glowczynski did with polish, for 
> example add these lines (as all sources still are in one file it's not simple to 
> find where :(, look around line 3968 if you use 0.9.11) for spanish:
> 
>   else if (language == LANG_ES)
>   {
>     putenv("OUTPUT_CHARSET=es_ES.UTF-8");
>     convert_open("ISO8859-1");
>   }
> 
> and these for german:
> 
>   else if (language == LANG_DE)
>   {
>     putenv("OUTPUT_CHARSET=de_DE.UTF-8");
>     convert_open("ISO8859-1");
>   }
> 
> and so on.
> 
> After these changes all i18n problems are solved and tuxpaint works correctly also 
> with UTF-8 locales !!!
> (changing TTF_RenderText_Blended to TTF_RenderUTF8_Blended solves not only 
> lithuanian and polish problems, but also problems with UTF-8 locales (for example 
> when locale is set to de_DE.UTF-8), see 
> http://tux4kids.net/pipermail/tuxpaint-i18n/2003-June/000238.html)
> 
> I want to thank Robert Glowczynski again for his help ;)
> 
> Good luck,
> Mantas Kriauciunas
> (waiting for tux4kids bug tracking system)
> -- 
> Jabber ID: [EMAIL PROTECTED]          ICQ: mantiena <44451746>

_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to