mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 14:02:42 +01:00
Replace Unicode quotes in user-facing strings by ASCII
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
This commit is contained in:
parent
c7654bc491
commit
2fd8f8bb99
86 changed files with 662 additions and 662 deletions
|
|
@ -46,7 +46,7 @@ struct NarIndexer : ParseSink, StringSource
|
|||
parents.push(&root);
|
||||
} else {
|
||||
if(parents.top()->type != FSAccessor::Type::tDirectory) {
|
||||
throw Error(format("NAR file missing parent directory of path ‘%1%’") % path);
|
||||
throw Error(format("NAR file missing parent directory of path '%1%'") % path);
|
||||
}
|
||||
auto result = parents.top()->children.emplace(baseNameOf(path), std::move(member));
|
||||
parents.push(&result.first->second);
|
||||
|
|
@ -120,7 +120,7 @@ struct NarIndexer : ParseSink, StringSource
|
|||
NarMember& at(const Path & path) {
|
||||
auto result = find(path);
|
||||
if(result == nullptr) {
|
||||
throw Error(format("NAR file does not contain path ‘%1%’") % path);
|
||||
throw Error(format("NAR file does not contain path '%1%'") % path);
|
||||
}
|
||||
return *result;
|
||||
}
|
||||
|
|
@ -149,7 +149,7 @@ struct NarAccessor : public FSAccessor
|
|||
auto i = indexer.at(path);
|
||||
|
||||
if (i.type != FSAccessor::Type::tDirectory)
|
||||
throw Error(format("path ‘%1%’ inside NAR file is not a directory") % path);
|
||||
throw Error(format("path '%1%' inside NAR file is not a directory") % path);
|
||||
|
||||
StringSet res;
|
||||
for(auto&& child : i.children) {
|
||||
|
|
@ -163,7 +163,7 @@ struct NarAccessor : public FSAccessor
|
|||
{
|
||||
auto i = indexer.at(path);
|
||||
if (i.type != FSAccessor::Type::tRegular)
|
||||
throw Error(format("path ‘%1%’ inside NAR file is not a regular file") % path);
|
||||
throw Error(format("path '%1%' inside NAR file is not a regular file") % path);
|
||||
return std::string(*nar, i.start, i.size);
|
||||
}
|
||||
|
||||
|
|
@ -171,7 +171,7 @@ struct NarAccessor : public FSAccessor
|
|||
{
|
||||
auto i = indexer.at(path);
|
||||
if (i.type != FSAccessor::Type::tSymlink)
|
||||
throw Error(format("path ‘%1%’ inside NAR file is not a symlink") % path);
|
||||
throw Error(format("path '%1%' inside NAR file is not a symlink") % path);
|
||||
return i.target;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue