summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2018-06-18 14:44:20 +0800
committerxhe <xw897002528@gmail.com>2018-06-18 14:44:20 +0800
commitbe5d98b544ef3d710ebb7c5f12eef83ec7a8102b (patch)
tree074accc5c214842c0480b28d61dfe1cff02cbc2a
parent9206a2e68e83a53312ffda39226f181a46a673d3 (diff)
downloadgettext-tiny-be5d98b544ef3d710ebb7c5f12eef83ec7a8102b.tar.gz
msgfmt: escape '\a' as well as other characters
Failed to compile procps pofiles due to msgfmt did not handle '\a' at all. Programs stepped in to abort directly.
-rw-r--r--src/StringEscape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StringEscape.c b/src/StringEscape.c
index be5ec55..233664a 100644
--- a/src/StringEscape.c
+++ b/src/StringEscape.c
@@ -96,6 +96,9 @@ size_t unescape(char* in, char *out, size_t outsize) {
case 'b':
*out = '\b';
break;
+ case 'a':
+ *out = '\a';
+ break;
// FIXME add handling of hex and octal
default:
abort();