aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Engelhardt <[email protected]>2024-05-21 13:45:29 +0000
committerGitHub <[email protected]>2024-05-21 13:45:29 +0000
commit97d15b8cd77998f37c279a023aa9f07def956e60 (patch)
treea59028d321a5ecbdf3ee59887810bd1feb1f4ca3 /src
parentResolve compiler warnings (#302) (diff)
downloadvmime-97d15b8cd77998f37c279a023aa9f07def956e60.tar.gz
vmime-97d15b8cd77998f37c279a023aa9f07def956e60.zip
vmime: avoid changing SEVEN_BIT when encoding::decideImpl sees U+007F (#303)
* vmime: avoid changing SEVEN_BIT when encoding::decideImpl sees U+007F Do not switch to QP/B64 when encountering U+007F. U+007F is part of ASCII just as much as U+0001 is. --------- Co-authored-by: Vincent Richard <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/vmime/encoding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/encoding.cpp b/src/vmime/encoding.cpp
index e66e268a..bca31573 100644
--- a/src/vmime/encoding.cpp
+++ b/src/vmime/encoding.cpp
@@ -157,7 +157,7 @@ const encoding encoding::decideImpl(
const string::difference_type length = end - begin;
const string::difference_type count = std::count_if(
- begin, end, [](unsigned char x) { return x < 127; });
+ begin, end, [](unsigned char x) { return x <= 127; });
// All is in 7-bit US-ASCII --> 7-bit (or Quoted-Printable...)
if (length == count) {