aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common/TextConfig.cpp
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-05-14 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-05-15 23:55:04 +0500
commitfc662341e6f85da78ada0e443f6116b978f79f22 (patch)
tree1be1cc402a7a9cbc18d4eeea6b141354c2d559e3 /CPP/Common/TextConfig.cpp
parent5b39dc76f1bc82f941d5c800ab9f34407a06b53a (diff)
download7zip-24.05.tar.gz
7zip-24.05.tar.bz2
7zip-24.05.zip
24.0524.05
Diffstat (limited to 'CPP/Common/TextConfig.cpp')
-rw-r--r--CPP/Common/TextConfig.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/CPP/Common/TextConfig.cpp b/CPP/Common/TextConfig.cpp
index d3e561c..5714e46 100644
--- a/CPP/Common/TextConfig.cpp
+++ b/CPP/Common/TextConfig.cpp
@@ -90,15 +90,14 @@ bool GetTextConfig(const AString &s, CObjectVector<CTextConfigPair> &pairs)
90 c = s[pos++]; 90 c = s[pos++];
91 switch (c) 91 switch (c)
92 { 92 {
93 case 'n': message += '\n'; break; 93 case 'n': c = '\n'; break;
94 case 't': message += '\t'; break; 94 case 't': c = '\t'; break;
95 case '\\': message += '\\'; break; 95 case '\\': break;
96 case '\"': message += '\"'; break; 96 case '\"': break;
97 default: message += '\\'; message += c; break; 97 default: message += '\\'; break;
98 } 98 }
99 } 99 }
100 else 100 message += c;
101 message += c;
102 } 101 }
103 if (!ConvertUTF8ToUnicode(message, pair.String)) 102 if (!ConvertUTF8ToUnicode(message, pair.String))
104 return false; 103 return false;