{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/2242","repository_url":"https://api.github.com/repos/mochajs/mocha","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/2242/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/2242/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/2242/events","html_url":"https://github.com/mochajs/mocha/issues/2242","id":153646770,"number":2242,"title":"path.resolve('C:') is different from process.cwd() on Windows.","user":{"login":"sttk","id":8656098,"avatar_url":"https://avatars.githubusercontent.com/u/8656098?v=3","gravatar_id":"","url":"https://api.github.com/users/sttk","html_url":"https://github.com/sttk","followers_url":"https://api.github.com/users/sttk/followers","following_url":"https://api.github.com/users/sttk/following{/other_user}","gists_url":"https://api.github.com/users/sttk/gists{/gist_id}","starred_url":"https://api.github.com/users/sttk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttk/subscriptions","organizations_url":"https://api.github.com/users/sttk/orgs","repos_url":"https://api.github.com/users/sttk/repos","events_url":"https://api.github.com/users/sttk/events{/privacy}","received_events_url":"https://api.github.com/users/sttk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mochajs/mocha/labels/question","name":"question","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-05-08T09:44:33Z","updated_at":"2016-09-24T02:34:22Z","closed_at":null,"body":"When the following code is executed,\r\n\r\n```js\r\nconst path = require('path');\r\n            \r\nconsole.log('1.');                                                     \r\nconsole.log(process.cwd());\r\nconsole.log(path.resolve('C:'));\r\n\r\nprocess.chdir(process.cwd());\r\n\r\nconsole.log('2.');\r\nconsole.log(process.cwd());\r\nconsole.log(path.resolve('C:'));\r\n```\r\nthe result is as follows:\r\n\r\n```\r\nC:\\Users\\sttk\\Works>node test\r\n1.\r\nC:\\Users\\sttk\\Works\r\nC:\\Users\\sttk\\Works\r\n2.\r\nC:\\Users\\sttk\\Works\r\nC:\\Users\\sttk\\Works\r\n\r\nC:\\Users\\sttk\\Works>mocha test\r\n1.\r\nC:\\Users\\sttk\\Works\r\nC:\\                   <= why?\r\n2.\r\nC:\\Users\\sttk\\Works\r\nC:\\Users\\sttk\\Works\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/249340114","html_url":"https://github.com/mochajs/mocha/issues/2242#issuecomment-249340114","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/2242","id":249340114,"user":{"login":"sttk","id":8656098,"avatar_url":"https://avatars.githubusercontent.com/u/8656098?v=3","gravatar_id":"","url":"https://api.github.com/users/sttk","html_url":"https://github.com/sttk","followers_url":"https://api.github.com/users/sttk/followers","following_url":"https://api.github.com/users/sttk/following{/other_user}","gists_url":"https://api.github.com/users/sttk/gists{/gist_id}","starred_url":"https://api.github.com/users/sttk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttk/subscriptions","organizations_url":"https://api.github.com/users/sttk/orgs","repos_url":"https://api.github.com/users/sttk/repos","events_url":"https://api.github.com/users/sttk/events{/privacy}","received_events_url":"https://api.github.com/users/sttk/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T02:34:22Z","updated_at":"2016-09-24T02:34:22Z","body":"This issue was solved as an issue of node.js : [nodejs/node#7215](https://github.com/nodejs/node/issues/7215)\r\n\r\nSo I think it's ok to close this issue.\r\n\r\n@ScottFreeCode Thank you for sending a PR to node team and explaining to them the details about this issue."}}
{"actor":{"display_login":"sttk"}}