Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

child_process.fork method & unicode characters #19888

Closed
vulcan9 opened this issue Apr 9, 2018 · 2 comments
Closed

child_process.fork method & unicode characters #19888

vulcan9 opened this issue Apr 9, 2018 · 2 comments

Comments

@vulcan9
Copy link

vulcan9 commented Apr 9, 2018

  • Version: node 9.10.0
  • Platform: 64-bit (Windows)
  • Subsystem: node-webkit 0.29.3

The child_process.fork method does not work if the file path contains unicode characters (korean, chiness, japanese...).

// '__dirname' contains unicode characters
var jsFile = path.resolve(__dirname, 'worker.js');

var fork = require("child_process").fork;
var child = fork(jsFile, [], {});

what do you think about?

@Trott
Copy link
Member

Trott commented Apr 9, 2018

I am unable to reproduce this error.

$ pwd
/Users/trott/io.js/⺠
$ cat test.js
var path = require('path');

// '__dirname' contains unicode characters
var jsFile = path.resolve(__dirname, 'worker.js');

var fork = require("child_process").fork;
var child = fork(jsFile, [], {});
$ cat worker.js 
// empty file (other than this comment)
$ node -v
v9.11.1
$ node test.js
$ node test.js && echo success
success
$

Can you provide more information on how to reproduce this bug?

@vulcan9
Copy link
Author

vulcan9 commented Apr 9, 2018

yha.. you're right.
I think it's a different problem.
I'm using nwJS, and I think I should ask from there.
Sorry.. & thank you :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants