summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/src/ngettext.c
diff options
context:
space:
mode:
Diffstat (limited to 'gettext-runtime/src/ngettext.c')
-rw-r--r--gettext-runtime/src/ngettext.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/gettext-runtime/src/ngettext.c b/gettext-runtime/src/ngettext.c
index 1997e32..f174741 100644
--- a/gettext-runtime/src/ngettext.c
+++ b/gettext-runtime/src/ngettext.c
@@ -259,7 +259,7 @@ expand_escape (const char *str)
++cp;
}
while (cp[0] != '\0' && cp[1] != '\0'
- && strchr ("bfnrt\\01234567", cp[1]) == NULL);
+ && strchr ("abfnrtv\\01234567", cp[1]) == NULL);
if (cp[0] == '\0')
return str;
@@ -273,6 +273,10 @@ expand_escape (const char *str)
{
switch (*++cp)
{
+ case 'a': /* alert */
+ *rp++ = '\a';
+ ++cp;
+ break;
case 'b': /* backspace */
*rp++ = '\b';
++cp;
@@ -293,6 +297,10 @@ expand_escape (const char *str)
*rp++ = '\t';
++cp;
break;
+ case 'v': /* vertical tab */
+ *rp++ = '\v';
+ ++cp;
+ break;
case '\\':
*rp = '\\';
++cp;