Arend wrote:
> Hi Paul,
>
> when I load the attached sgf-file (from the madlab test suite), I get loads
> of warnings
>
> ** (quarry:15484): WARNING **: Invalid UTF8 string passed to
> pango_layout_set_text()
>
> when resizing the window.
Does this patch fix the problem? My copy of Quarry is not compilable
right now because it contains unfinished changes.
The file you attached is quite broken. Per SGF standard, you cannot have
the same property many times in a node, but this file contains
``AB[mr]AB[nr]...'' and ``LB[pp:a]LB[rm:b]'' instead of ``AB[mr][nr]...''
and ``LB[pp:a][rm:b]''. Quarry handles this, but the code is not very
tested, so it choked on the label lists.
Paul
--- sgf-parser.c 09 Dec 2004 00:52:51 +0200 1.12
+++ sgf-parser.c 22 Dec 2004 22:51:21 +0200
@@ -2047,6 +2047,8 @@ sgf_parse_list_of_label (SgfParsingData
int pos = POINT_TO_POSITION (label_list->labels[k].point);
labels[pos] = label_list->labels[k].text;
+ label_list->labels[k].text = NULL;
+
data->common_marked_positions[pos] = data->board_common_mark;
}