patch 9.0.1594: some internal error messages are translated
Problem: Some internal error messages are translated.
Solution: Consistently do not translate internal error messages.
(closes #12459)
diff --git a/src/regexp.c b/src/regexp.c
index 0e6c746..9c576c6 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -1370,7 +1370,7 @@
if (UCHARAT(((bt_regprog_T *)prog)->program) != REGMAGIC)
{
- emsg(_(e_corrupted_regexp_program));
+ iemsg(e_corrupted_regexp_program);
return TRUE;
}
return FALSE;
@@ -2022,7 +2022,7 @@
// Be paranoid...
if ((source == NULL && expr == NULL) || dest == NULL)
{
- emsg(_(e_null_argument));
+ iemsg(e_null_argument);
return 0;
}
if (prog_magic_wrong())
@@ -2389,7 +2389,7 @@
else if (*s == NUL) // we hit NUL.
{
if (copy)
- iemsg(_(e_damaged_match_string));
+ iemsg(e_damaged_match_string);
goto exit;
}
else