Skip to content

Commit b220d2c

Browse files
authored
Merge pull request #947 from Dietatko/master
stdout.write uses encoding directly instead of setting encoding first
2 parents 1f463aa + 7871170 commit b220d2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/jslib/build.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1341,8 +1341,7 @@ define(function (require) {
13411341
var out = new java.io.PrintStream(java.lang.System.out, true, 'UTF-8');
13421342
out.println(content);
13431343
} else if (e === 'node') {
1344-
process.stdout.setEncoding('utf8');
1345-
process.stdout.write(content);
1344+
process.stdout.write(content, 'utf8');
13461345
} else {
13471346
console.log(content);
13481347
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy