Skip to content

Commit fd8587e

Browse files
committed
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: #11129 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c30fc8d commit fd8587e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Žlib/buffer.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function fromString(string, encoding) {
217217
var b = new FastBuffer(allocPool, poolOffset, length);
218218
var actual = b.write(string, encoding);
219219
if (actual !== length) {
220-
// byteLength() may overestimate. That’s a rare case, though.
220+
// byteLength() may overestimate. That's a rare case, though.
221221
b = new FastBuffer(allocPool, poolOffset, actual);
222222
}
223223
poolOffset += actual;

β€Žlib/repl.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ function REPLServer(prompt,
318318
let previouslyInRawMode;
319319
if (self.breakEvalOnSigint) {
320320
// Start the SIGINT watchdog before entering raw mode so that a very
321-
// quick Ctrl+C doesn’t lead to aborting the process completely.
321+
// quick Ctrl+C doesn't lead to aborting the process completely.
322322
utilBinding.startSigintWatchdog();
323323
previouslyInRawMode = self._setRawMode(false);
324324
}

0 commit comments

Comments
Β (0)