From 60b52ce0bc40bf653fd04cad29fb4d6f99f4ddad Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sat, 31 Aug 2019 18:40:13 +0200 Subject: [PATCH] HashMapCatalog: handle more standard escpae sequences. Fixes #14705 --- src/kits/locale/HashMapCatalog.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/kits/locale/HashMapCatalog.cpp b/src/kits/locale/HashMapCatalog.cpp index 801fd46f68..0db2b76718 100644 --- a/src/kits/locale/HashMapCatalog.cpp +++ b/src/kits/locale/HashMapCatalog.cpp @@ -159,10 +159,20 @@ parseQuotedChars(BString& stringToParse) while (*in != 0) { if (quoted) { - if (*in == 'n') + if (*in == 'a') + *out = '\a'; + else if (*in == 'b') + *out = '\b'; + else if (*in == 'f') + *out = '\f'; + else if (*in == 'n') *out = '\n'; + else if (*in == 'r') + *out = '\r'; else if (*in == 't') *out = '\t'; + else if (*in == 'v') + *out = '\v'; else if (*in == '"') *out = '"'; else if (*in == 'x') {