[BUG] "Pango-WARNING **: Invalid UTF-8 string" with some strings

Dirk Hohndel dirk at hohndel.org
Tue Oct 2 07:49:12 PDT 2012


On Oct 2, 2012, at 7:12 AM, Lubomir I. Ivanov wrote:

> i'm currently looking at a problem where a pango warning is spit in
> the console if you edit a dive and enter for example the following
> text in "Location":
> 0ддддддддддддддддддддддддддддддд
> not sure if my email arrives as unicode, so basically the above is a 0
> (zero) followed by 31 cyrillic lowercase d's (д = U-0434)
> 
> from what i can tell so far this happens when retrieving a
> gtk_entry_get_text() from a combo box
> (info.c:get_combo_box_entry_text) and setting the same text as window
> title and as a  tree list column entry.
> i'm currently debugging the string and believe this is somehow length
> related...happens with other variations of characters and inserted
> spaces as well.
> 
> overall, looks like a gtk/pango bug and is a bit difficult to enter
> such as sequence by accident.
> 
> strangely the same does not happen when entering such strings as trip locations.

That's odd. The code paths for locations and trip locations should be almost perfectly symmetric.

Have you run this with --g-fatal-warnings to pinpoint which call exactly throws the warning?

/D


More information about the subsurface mailing list