G_scanner: g_scanner_get_next_token returns 1

glib versions: 2.66, 2.71

I found undocumented behavior (or mini bug) of
GTokenType g_scanner_get_next_token().
In sample input data inside ‘[’ and ‘]’, g_scanner_get_next_token() returns 1,
which is not in enum GTokenType.

Is this a stable (mis)feature ?

Can you create an issue here with a small testcase to reproduce this behaviour?


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.