+2007-12-13 Mathias Hasselmann <mathias@openismus.com>
+
+ Give exmples in error message unsupported case-changing escape
+ sequences. (503222)
+
+ * glib/gregex.c: Add examples to error message for PCRE-ERR37.
+
2007-12-13 Bastien Nocera <hadess@hadess.net>
* glib/gtimer.c: (g_time_val_from_iso8601):
* G_REGEX_ERROR_COMPILE error code in errcode and keep the
* untranslated error message returned by PCRE.
* Note that there can be more PCRE errors with the same GRegexError
- * and that some PCRE errors are useless for us. */
+ * and that some PCRE errors are useless for us.
+ */
*errcode += 100;
switch (*errcode)
*errmsg = _("unrecognized character follows \\");
break;
case 137:
+ /* A number of Perl escapes are not handled by PCRE.
+ * Therefore it explicitly raises ERR37.
+ */
*errcode = G_REGEX_ERROR_UNRECOGNIZED_ESCAPE;
- *errmsg = _("case changing escapes are not allowed here");
+ *errmsg = _("case-changing escapes (\\l, \\L, \\u, \\U) are not allowed here");
break;
case G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER:
*errmsg = _("numbers out of order in {} quantifier");