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" --- .../resolve-system-dependencies.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/resolve-system-dependencies') diff --git a/src/resolve-system-dependencies/resolve-system-dependencies.cc b/src/resolve-system-dependencies/resolve-system-dependencies.cc index 63e557ec5f1c..e02cfc03ec97 100644 --- a/src/resolve-system-dependencies/resolve-system-dependencies.cc +++ b/src/resolve-system-dependencies/resolve-system-dependencies.cc @@ -32,25 +32,25 @@ std::set runResolver(const Path & filename) { AutoCloseFD fd = open(filename.c_str(), O_RDONLY); if (!fd) - throw SysError("opening ‘%s’", filename); + throw SysError("opening '%s'", filename); struct stat st; if (fstat(fd.get(), &st)) - throw SysError("statting ‘%s’", filename); + throw SysError("statting '%s'", filename); if (!S_ISREG(st.st_mode)) { - printError("file ‘%s’ is not a regular file", filename); + printError("file '%s' is not a regular file", filename); return {}; } if (st.st_size < sizeof(mach_header_64)) { - printError("file ‘%s’ is too short for a MACH binary", filename); + printError("file '%s' is too short for a MACH binary", filename); return {}; } char* obj = (char*) mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd.get(), 0); if (!obj) - throw SysError("mmapping ‘%s’", filename); + throw SysError("mmapping '%s'", filename); ptrdiff_t mach64_offset = 0; @@ -66,13 +66,13 @@ std::set runResolver(const Path & filename) } } if (mach64_offset == 0) { - printError(format("Could not find any mach64 blobs in file ‘%1%’, continuing...") % filename); + printError(format("Could not find any mach64 blobs in file '%1%', continuing...") % filename); return {}; } } else if (magic == MH_MAGIC_64 || magic == MH_CIGAM_64) { mach64_offset = 0; } else { - printError(format("Object file has unknown magic number ‘%1%’, skipping it...") % magic); + printError(format("Object file has unknown magic number '%1%', skipping it...") % magic); return {}; } @@ -101,7 +101,7 @@ bool isSymlink(const Path & path) { struct stat st; if (lstat(path.c_str(), &st) == -1) - throw SysError("getting attributes of path ‘%1%’", path); + throw SysError("getting attributes of path '%1%'", path); return S_ISLNK(st.st_mode); } -- cgit 1.4.1