introspection problem with enums whose nick contains a dot
Submitted by Christian Persch
Link to original bug (#705639)
Description
I'm trying to bind a library which has sth like this:
typedef enum { FOO_BAR_BAZ /< nick="Wibble.Wobble" >/ } FooBarEnum;
plus glib-mkenum generated GType for it.
Generating the GIR results in a GIR which has the enum member with . Then the typelib compiler chokes on this with a g_error:
ERROR ** [...] "The value contains invalid characters".
Now I understand that dots in the name are reserved for a reason, but still the typelib compiler should just output a regular error message, not crash; and the GIR scanner shouldn't just create a GIR with that member name either but error instead, too.
Also, since changing the nick would be an ABI break for the library, I'd like to avoid that; is there any other way to resolve this problem?
This is with glib + gobject-introspection git master.