From fd8587eb38804311c53d1da8315f267614d77c58 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 6 Feb 2017 20:44:17 +0100 Subject: [PATCH] lib: replace \u2019 with regular ascii quote The previous commit stores baked-in files with non-ASCII characters as UTF-16. Replace the \u2019 with a regular quote character so that the files they're in can be stored as one-byte strings. The UTF-16 functionality is still tested by the Unicode diagram in lib/timers.js. PR-URL: https://github.com/nodejs/node/pull/11129 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- lib/buffer.js | 2 +- lib/repl.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/buffer.js b/lib/buffer.js index cb93d7e2488..5d42f362e71 100644 --- a/lib/buffer.js +++ b/lib/buffer.js @@ -217,7 +217,7 @@ function fromString(string, encoding) { var b = new FastBuffer(allocPool, poolOffset, length); var actual = b.write(string, encoding); if (actual !== length) { - // byteLength() may overestimate. That’s a rare case, though. + // byteLength() may overestimate. That's a rare case, though. b = new FastBuffer(allocPool, poolOffset, actual); } poolOffset += actual; diff --git a/lib/repl.js b/lib/repl.js index fed89146dc9..abb593caf15 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -318,7 +318,7 @@ function REPLServer(prompt, let previouslyInRawMode; if (self.breakEvalOnSigint) { // Start the SIGINT watchdog before entering raw mode so that a very - // quick Ctrl+C doesn’t lead to aborting the process completely. + // quick Ctrl+C doesn't lead to aborting the process completely. utilBinding.startSigintWatchdog(); previouslyInRawMode = self._setRawMode(false); }