summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-05-07 06:15:36 +0200
committerJulian Andres Klode <julian.klode@canonical.com>2019-05-07 06:17:30 +0200
commit6332001e511bf88874c67d94248f877a103e87e5 (patch)
treece3c0cfd437057dd67d5c5ba39edf7d786c551ad /apt-pkg
parent3bec42fdf01eb3f7403876979023ad952228ee73 (diff)
debmetaindex: Use isspace_ascii() variant to normalize Signed-By
Using the locale-dependent isspace() function here opens us up to strange locale-dependent behavior.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/deb/debmetaindex.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/deb/debmetaindex.cc b/apt-pkg/deb/debmetaindex.cc
index 13575e10b..fef58f543 100644
--- a/apt-pkg/deb/debmetaindex.cc
+++ b/apt-pkg/deb/debmetaindex.cc
@@ -59,7 +59,7 @@ static std::string NormalizeSignedBy(std::string SignedBy, bool const SupportFil
// but fingerprints are harder to fake than the others and this option is set once,
// not interactively all the time so easy to type is not really a concern.
std::transform(SignedBy.begin(), SignedBy.end(), SignedBy.begin(), [](char const c) {
- return (isspace(c) == 0) ? c : ',';
+ return (isspace_ascii(c) == 0) ? c : ',';
});
auto fingers = VectorizeString(SignedBy, ',');
auto const isAnEmptyString = [](std::string const &s) { return s.empty(); };