aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/shared.hh
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2016-11-25 15:48:27 +0100
committerDomen Kožar <domen@dev.si>2016-11-25 15:48:27 +0100
commitf78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7 (patch)
tree23a76a33f21ce39184bcbdcd28cb937d15968ce7 /src/libmain/shared.hh
parent7ee43df8622cc0589d54248fb44cebe1c1d991d2 (diff)
Get rid of unicode quotes (#1140)
Diffstat (limited to 'src/libmain/shared.hh')
-rw-r--r--src/libmain/shared.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh
index 6d94a22f7..a147f9b4d 100644
--- a/src/libmain/shared.hh
+++ b/src/libmain/shared.hh
@@ -45,7 +45,7 @@ template<class N> N getIntArg(const string & opt,
Strings::iterator & i, const Strings::iterator & end, bool allowUnit)
{
++i;
- if (i == end) throw UsageError(format("‘%1%’ requires an argument") % opt);
+ if (i == end) throw UsageError(format("'%1%' requires an argument") % opt);
string s = *i;
N multiplier = 1;
if (allowUnit && !s.empty()) {
@@ -55,13 +55,13 @@ template<class N> N getIntArg(const string & opt,
else if (u == 'M') multiplier = 1ULL << 20;
else if (u == 'G') multiplier = 1ULL << 30;
else if (u == 'T') multiplier = 1ULL << 40;
- else throw UsageError(format("invalid unit specifier ‘%1%’") % u);
+ else throw UsageError(format("invalid unit specifier '%1%'") % u);
s.resize(s.size() - 1);
}
}
N n;
if (!string2Int(s, n))
- throw UsageError(format("‘%1%’ requires an integer argument") % opt);
+ throw UsageError(format("'%1%' requires an integer argument") % opt);
return n * multiplier;
}