Re: Invalid UTF8 string passed to pango_layout_set_text()

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

 



Argghhhhh...

I found that error....

1 character errors are the worse thing in UNIX programming.

I've set ALL_LINGUAS=ro"" instead of ALL_LINGUAS="ro" :-(

but with very small xterm fonts and a black background th error wasn't obvious.


Pe data de Tue, 9 Dec 2003 22:29:22  0200, ai scris:
>Hi people
>
>I'm writing a program that uses GnomeIconList.
>It has i18n support .
>in po file charset is declared as UTF-8
>
>When this line is reached:
>gnome_icon_list_append_pixbuf ( GNOME_ICON_LIST (icon_list) , iso_pixbuf,XNERO_ICONDIR "/cpl_new_cd_iso.png","CD-ROM (ISO)");	
>
>the next error appears:
> Invalid UTF8 string passed to pango_layout_set_text()
>
>
> i read all the mails containing this error message but i can't get it right.
>I tried it like this:
>
>gnome_icon_list_append_pixbuf ( GNOME_ICON_LIST (icon_list) , iso_pixbuf,
>				  g_filename_to_utf8(XNERO_ICONDIR"/cpl_new_cd_iso.png",-1,NULL,NULL,NULL),
>				  g_locale_to_utf8 (_("CD-ROM (ISO)"),12,&bytes_read,&bytes_written,NULL));
>
>or
>
>gnome_icon_list_append_pixbuf ( GNOME_ICON_LIST (icon_list) , iso_pixbuf,XNERO_ICONDIR "/cpl_new_cd_iso.png",latin1_to_utf8("CD-ROM (ISO)"));
>
>where latin_to_utf8 is a function suggested by HAvoc in a mail.
>
>Nothing worked :-(.
>
>Could you help me please??
>
>I'm using Gnome 2.4.0 from GARNOME distribuition,RH9 standard distrib.
>
>
>Thanks
>
>
> 
>--
>
>RUK;
>#!/bin/ssh
>#The Unix Guru's View of Sex
>unzip ; strip ; touch ; grep ; finger ; mount ; fsck; more ; yes ; umount ; sleep
>
>
>Acest email a fost trimis din interfata web http://www.bumerang.ro
>
>
>
>_______________________________________________
>
>gtk-list@xxxxxxxxx
>http://mail.gnome.org/mailman/listinfo/gtk-list
> 
--

RUK;
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck; more ; yes ; umount ; sleep


Acest email a fost trimis din interfata web http://www.bumerang.ro



_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux