Hello all.
I cannot find good URI parsing library for GLib so i stuck with GURI
from legacy GNet. Nut sure what I'm doing wrong but even this small
example sefaults:
// uri.vala
//
// valac --pkg gnet-2.0 uri.vala && ./uri
void main (string[] args) {
var uri = new GNet.URI("http://antono.info:80/");
debug("HOST: %s", uri.hostname);
debug("PORT: %d", uri.port);
}
// valac --pkg gnet-2.0 uri.vala && ./uri
// ** (process:16111): DEBUG: uri.vala:7: HOST: antono.info
// ** (process:16111): DEBUG: uri.vala:8: PORT: 80
// Segmentation fault (core dumped)
Any advise?
Attachment:
uri.vala
Description: Text Data