mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-30 20:33:08 +02:00
Give exmples in error message unsupported case-changing escape
sequences. (503222) * glib/gregex.c: Add examples to error message for PCRE-ERR37. svn path=/trunk/; revision=6113
This commit is contained in:
parent
9a886dbe73
commit
69f071c88b
@ -1,3 +1,10 @@
|
|||||||
|
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>
|
2007-12-13 Bastien Nocera <hadess@hadess.net>
|
||||||
|
|
||||||
* glib/gtimer.c: (g_time_val_from_iso8601):
|
* glib/gtimer.c: (g_time_val_from_iso8601):
|
||||||
|
@ -189,7 +189,8 @@ translate_compile_error (gint *errcode, gchar **errmsg)
|
|||||||
* G_REGEX_ERROR_COMPILE error code in errcode and keep the
|
* G_REGEX_ERROR_COMPILE error code in errcode and keep the
|
||||||
* untranslated error message returned by PCRE.
|
* untranslated error message returned by PCRE.
|
||||||
* Note that there can be more PCRE errors with the same GRegexError
|
* 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;
|
*errcode += 100;
|
||||||
|
|
||||||
switch (*errcode)
|
switch (*errcode)
|
||||||
@ -204,8 +205,11 @@ translate_compile_error (gint *errcode, gchar **errmsg)
|
|||||||
*errmsg = _("unrecognized character follows \\");
|
*errmsg = _("unrecognized character follows \\");
|
||||||
break;
|
break;
|
||||||
case 137:
|
case 137:
|
||||||
|
/* A number of Perl escapes are not handled by PCRE.
|
||||||
|
* Therefore it explicitly raises ERR37.
|
||||||
|
*/
|
||||||
*errcode = G_REGEX_ERROR_UNRECOGNIZED_ESCAPE;
|
*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;
|
break;
|
||||||
case G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER:
|
case G_REGEX_ERROR_QUANTIFIERS_OUT_OF_ORDER:
|
||||||
*errmsg = _("numbers out of order in {} quantifier");
|
*errmsg = _("numbers out of order in {} quantifier");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user