Title: OS X 10.11: system calls return non-normalized unicode strings · Issue #2165 · nodejs/node · GitHub
Open Graph Title: OS X 10.11: system calls return non-normalized unicode strings · Issue #2165 · nodejs/node
X Title: OS X 10.11: system calls return non-normalized unicode strings · Issue #2165 · nodejs/node
Description: test/sequential/test-chdir.js persistently fails on OS X 10.11 because the output of process.cwd() doesn't match the path we're doing process.chdir() on before. Here's a reduced test case (npm i mkdirp hexy): const mkdirp = require('mkdi...
Open Graph Description: test/sequential/test-chdir.js persistently fails on OS X 10.11 because the output of process.cwd() doesn't match the path we're doing process.chdir() on before. Here's a reduced test case (npm i mk...
X Description: test/sequential/test-chdir.js persistently fails on OS X 10.11 because the output of process.cwd() doesn't match the path we're doing process.chdir() on before. Here's a reduced test ca...
Opengraph URL: https://github.com/nodejs/node/issues/2165
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OS X 10.11: system calls return non-normalized unicode strings","articleBody":"`test/sequential/test-chdir.js` persistently fails on OS X 10.11 because the output of `process.cwd()` doesn't match the path we're doing `process.chdir()` on before.\n\nHere's a reduced test case (`npm i mkdirp hexy`):\n\n``` js\nconst mkdirp = require('mkdirp');\nconst hex = require('hexy').hexy;\nconst dir = __dirname + '/weird \\uc3a4\\uc3ab\\uc3af characters \\u00e1\\u00e2\\u00e3';\n\nmkdirp.sync(dir);\nprocess.chdir(dir);\n\nconsole.log(hex(new Buffer(dir)));\nconsole.log(hex(new Buffer(process.cwd())));\nconsole.log(dir.length, dir);\nconsole.log(process.cwd().length, process.cwd());\n```\n\nThe strings look identical on the terminal, but the bytes differ. Here's the output:\n\n```\n00000000: 2f55 7365 7273 2f73 696c 7665 7277 696e /Users/silverwin\n00000010: 642f 6769 742f 6368 6469 722f 7765 6972 d/git/chdir/weir\n00000020: 6420 ec8e a4ec 8eab ec8e af20 6368 6172 d.l.$l.+l./.char\n00000030: 6163 7465 7273 20c3 a1c3 a2c3 a3 acters.C!C\"C#\n\n00000000: 2f55 7365 7273 2f73 696c 7665 7277 696e /Users/silverwin\n00000010: 642f 6769 742f 6368 6469 722f 7765 6972 d/git/chdir/weir\n00000020: 6420 e184 8ae1 85a7 e186 abe1 848a e185 d.a..a.'a.+a..a.\n00000030: a7e1 86b2 e184 8ae1 85a7 e186 b620 6368 'a.2a..a.'a.6.ch\n00000040: 6172 6163 7465 7273 2061 cc81 61cc 8261 aracters.aL.aL.a\n00000050: cc83 L.\n\n52 '/Users/silverwind/git/chdir/weird 쎤쎫쎯 characters áâã'\n61 '/Users/silverwind/git/chdir/weird 쎤쎫쎯 characters áâã'\n```\n\ncc: @evanlucas\n","author":{"url":"https://github.com/silverwind","@type":"Person","name":"silverwind"},"datePublished":"2015-07-11T23:57:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":71},"url":"https://github.com/2165/node/issues/2165"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a2b5a5cb-8084-248c-59a9-f2bc58a0201d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92A8:16E020:2EFB86:435A29:6A4E6A62 |
| html-safe-nonce | c85336603edd6a9d9fbcd1126f9096381191c30f20befd93787c8e69e595a474 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkE4OjE2RTAyMDoyRUZCODY6NDM1QTI5OjZBNEU2QTYyIiwidmlzaXRvcl9pZCI6IjM4MTEwNzIwMjQyNDA4NzYxMzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9d368c2167bbab263284d8a4ca547cb6f0f000d8182b7b92044a5371fd16e288 |
| hovercard-subject-tag | issue:94518046 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/2165/issue_layout |
| twitter:image | https://opengraph.githubassets.com/70b96647e56f9701ccadbc6f5400297fdc89a8d98bb24757f3dd5cff8bd5c15d/nodejs/node/issues/2165 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/70b96647e56f9701ccadbc6f5400297fdc89a8d98bb24757f3dd5cff8bd5c15d/nodejs/node/issues/2165 |
| og:image:alt | test/sequential/test-chdir.js persistently fails on OS X 10.11 because the output of process.cwd() doesn't match the path we're doing process.chdir() on before. Here's a reduced test case (npm i mk... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | silverwind |
| hostname | github.com |
| expected-hostname | github.com |
| None | 41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6a744804e8e70f97b4d5a18a94dcc63db22f97a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width