summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2017-11-08 13:49:25 +0800
committerxhe <xw897002528@gmail.com>2017-11-08 13:49:25 +0800
commit0caeb139214781732269175d2d157ddfe74692d9 (patch)
tree2399081257b7c62acc750e9693c57dff1ce54581
parent809cf35b7d8ed23328e6103fd36aef31806f40e7 (diff)
downloadgettext-tiny-0caeb139214781732269175d2d157ddfe74692d9.tar.gz
msgfmt: escape '\b' as well as other characters
I failed to compile audacity pofiles due to msgfmt did not handle '\b' 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 3a9ddd6..be5ec55 100644
--- a/src/StringEscape.c
+++ b/src/StringEscape.c
@@ -93,6 +93,9 @@ size_t unescape(char* in, char *out, size_t outsize) {
case '\'':
*out = '\'';
break;
+ case 'b':
+ *out = '\b';
+ break;
// FIXME add handling of hex and octal
default:
abort();