Am Samstag, den 14.10.2017, 16:09 +0200 schrieb Enrico Forestieri:
> I think something fishy is occurring here. When removing the debug
> patch
> it doesn't work anymore, with or without the static declaration.
> I am really confused.

I'd be interested in the output of the attached debug code.

Another thing to try might be if the same problem occurs with
boost::regex.

Jürgen
diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp
index 87245d3824..37af44f18d 100644
--- a/src/BiblioInfo.cpp
+++ b/src/BiblioInfo.cpp
@@ -249,6 +249,8 @@ docstring constructName(docstring const & name, string const scheme)
 		res += sub.str(5);
 	}
 	if (regex_match(res, sub, reg3)) {
+		for (unsigned int i = 0; i < sub.size(); ++i)
+			LYXERR0("match " + to_string(i) + ": " + sub.str(i));
 		res = sub.str(1);
 		if (!prefix.empty())
 			res += sub.str(3);

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to