From 2fd8f8bb99a2832b3684878c020ba47322e79332 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Sun, 30 Jul 2017 12:27:57 +0100 Subject: Replace Unicode quotes in user-facing strings by ASCII MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g" --- src/nix/edit.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/nix/edit.cc') diff --git a/src/nix/edit.cc b/src/nix/edit.cc index 632b555771c2..5cf9c7200d03 100644 --- a/src/nix/edit.cc +++ b/src/nix/edit.cc @@ -41,7 +41,7 @@ struct CmdEdit : InstallablesCommand auto dummyArgs = state->allocBindings(0); v2 = findAlongAttrPath(*state, "meta.position", *dummyArgs, *v); } catch (Error &) { - throw Error("package ‘%s’ has no source location information", i->what()); + throw Error("package '%s' has no source location information", i->what()); } auto pos = state->forceString(*v2); @@ -49,7 +49,7 @@ struct CmdEdit : InstallablesCommand auto colon = pos.rfind(':'); if (colon == std::string::npos) - throw Error("cannot parse meta.position attribute ‘%s’", pos); + throw Error("cannot parse meta.position attribute '%s'", pos); std::string filename(pos, 0, colon); int lineno = std::stoi(std::string(pos, colon + 1)); @@ -67,7 +67,7 @@ struct CmdEdit : InstallablesCommand execvp(editor.c_str(), stringsToCharPtrs(args).data()); - throw SysError("cannot run editor ‘%s’", editor); + throw SysError("cannot run editor '%s'", editor); } } }; -- cgit 1.4.1