pty.js icon indicating copy to clipboard operation
pty.js copied to clipboard

Terminal failes to start with non-ASCII cwd

Open morags opened this issue 9 years ago • 1 comments

Calling pty.startProcess() with a cwd that has non-ASCII characters (eg. Hebrew) raises the following error: Unable to start terminal process. Win32 error code: 267. The error code suggests an invalid directory name.

// cwd = E:\
Cannot find module '..\build\Release\pty.node'

// cwd = E:\מסמכים\תוכנות\Eclipse\Coursework
Cannot find module '..\build\Release\pty.node'
Unable to start terminal process. Win32 error code: 267 Error: Unable to start terminal process. Win32 error code: 267
    at Error (native)
    at Server.<anonymous> (C:\Users\morags\.atom\packages\platformio-ide-terminal\node_modules\pty.js\lib\pty_win.js:68:9)
    at emitOne (events.js:77:13)
    at Server.emit (events.js:169:7)
    at Pipe.onconnection (net.js:1430:8)

morags avatar Aug 18 '16 12:08 morags

This is fixed in my fork node-pty thanks to @the-ress.

Tyriar avatar Jan 15 '17 17:01 Tyriar