$OpenBSD: patch-goffice_utils_regutf8_c,v 1.1.1.1 2012/12/19 10:40:08 ajacoutot Exp $

Fix with pcre >= 8.30 (undefine ref. to pcre_info).

--- goffice/utils/regutf8.c.orig	Tue Mar 20 07:33:58 2012
+++ goffice/utils/regutf8.c	Tue Mar 20 07:35:37 2012
@@ -155,7 +155,7 @@ go_regcomp (GORegexp *gor, const char *pat, int cflags
 		default: return GO_REG_BADPAT;
 		}
 	} else {
-		gor->re_nsub = pcre_info (r, NULL, NULL);
+		pcre_fullinfo(r, NULL, PCRE_INFO_CAPTURECOUNT, &gor->re_nsub);
 		gor->nosub = (cflags & GO_REG_NOSUB) != 0;
 		return 0;
 	}
