+2004-07-10 Bruno Haible <bruno@clisp.org>
+
+ * rt-gettext.texi: Document also \a.
+ * rt-ngettext.texi: Likewise.
+
2004-03-23 Bruno Haible <bruno@clisp.org>
* nls.texi: Small wording fixes,
@opindex -e@r{, @code{gettext} option}
Enable expansion of some escape sequences. This option is for compatibility
with the @samp{echo} program or shell built-in. The escape sequences
-@samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t}, @samp{\v},
-@samp{\\}, and @samp{\} followed by one to three octal digits, are interpreted
-like the @samp{echo} program does.
+@samp{\a}, @samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t},
+@samp{\v}, @samp{\\}, and @samp{\} followed by one to three octal digits, are
+interpreted like the SystemV @samp{echo} program does.
@item -E
@opindex -E@r{, @code{gettext} option}
@opindex -e@r{, @code{ngettext} option}
Enable expansion of some escape sequences. This option is for compatibility
with the @samp{gettext} program. The escape sequences
-@samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t}, @samp{\v},
-@samp{\\}, and @samp{\} followed by one to three octal digits, are interpreted
-like the @samp{echo} program does.
+@samp{\a}, @samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t},
+@samp{\v}, @samp{\\}, and @samp{\} followed by one to three octal digits, are
+interpreted like the SystemV @samp{echo} program does.
@item -E
@opindex -E@r{, @code{ngettext} option}
+2004-07-10 Bruno Haible <bruno@clisp.org>
+
+ * gettext.c (expand_escape): Support also \a and \v.
+ * ngettext.c (expand_escape): Likewise.
+
2004-02-02 Bruno Haible <bruno@clisp.org>
* Makefile.am (RM): New variable.
++cp;
}
while (cp[0] != '\0' && cp[1] != '\0'
- && strchr ("bcfnrt\\01234567", cp[1]) == NULL);
+ && strchr ("abcfnrtv\\01234567", cp[1]) == NULL);
if (cp[0] == '\0')
return str;
{
switch (*++cp)
{
+ case 'a': /* alert */
+ *rp++ = '\a';
+ ++cp;
+ break;
case 'b': /* backspace */
*rp++ = '\b';
++cp;
*rp++ = '\t';
++cp;
break;
+ case 'v': /* vertical tab */
+ *rp++ = '\v';
+ ++cp;
+ break;
case '\\':
*rp = '\\';
++cp;
++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;
{
switch (*++cp)
{
+ case 'a': /* alert */
+ *rp++ = '\a';
+ ++cp;
+ break;
case 'b': /* backspace */
*rp++ = '\b';
++cp;
*rp++ = '\t';
++cp;
break;
+ case 'v': /* vertical tab */
+ *rp++ = '\v';
+ ++cp;
+ break;
case '\\':
*rp = '\\';
++cp;
+2004-07-10 Bruno Haible <bruno@clisp.org>
+
+ * tstgettext.c (expand_escape): Support also \a and \v.
+
2004-03-14 Bruno Haible <bruno@clisp.org>
* format-lisp-2: Add one more test for ~[...~].
++cp;
}
while (cp[0] != '\0' && cp[1] != '\0'
- && strchr ("bcfnrt\\01234567", cp[1]) == NULL);
+ && strchr ("abcfnrtv\\01234567", cp[1]) == NULL);
if (cp[0] == '\0')
return str;
{
switch (*++cp)
{
+ case 'a': /* alert */
+ *rp++ = '\a';
+ ++cp;
+ break;
case 'b': /* backspace */
*rp++ = '\b';
++cp;
*rp++ = '\t';
++cp;
break;
+ case 'v': /* vertical tab */
+ *rp++ = '\v';
+ ++cp;
+ break;
case '\\':
*rp = '\\';
++cp;