Closed
Description
- Version: master
- Platform: macOS
- Subsystem: build
At Code & Learn Shanghai we encountered some issues with non-ASCII (specifically, Chinese) file paths when building. Don't have the Python stack trace, but could someone look into that?
Activity
gibfahn commentedon Jul 18, 2017
Stack trace:
bnoordhuis commentedon Jul 18, 2017
cc @nodejs/v8-inspector
TimothyGu commentedon Jul 18, 2017
I can reproduce this on Linux as well. This is because Python 2's
sys.argvis an array of values of typestr, which is basically an array of 8-bit values, instead ofunicode. The file system functions see astrvalue and interpret it as ASCII, which fails when in Unixsys.argvis in fact encoded with UTF-8.refack commentedon Jul 24, 2017
nodejs/node-gyp#1203 might solve this
(trying to upstream https://chromium-review.googlesource.com/c/509632/)
TimothyGu commentedon Jul 24, 2017
@refack It's unrelated.
refack commentedon Jul 24, 2017
Hmmmm it's
makenotconfigure... so maybe #12786 (comment)Trott commentedon Jul 24, 2017
Editing title to say POSIX since this is on Linux as well as macOS.
[-]Investigate non-ASCII build file path under macOS[/-][+]Investigate non-ASCII build file path on POSIX[/+]SgtPooki commentedon Oct 6, 2017
I was able to reproduce this and am looking into it.
deps: this fixes nodejs#14336, non-ascii build file path when running…
2 remaining items
docs: warn users about non-ASCII paths on build
doc: warn users about non-ASCII paths on build
doc: warn users about non-ASCII paths on build
doc: warn users about non-ASCII paths on build
doc: warn users about non-ASCII paths on build
doc: warn users about non-ASCII paths on build
doc: warn users about non-ASCII paths on build
lundibundi commentedon Aug 25, 2018
I will close this as it seems to be resolved (this seems to be the relevant comment #16735 (comment)). I've also built it locally with this path
node/弄得/nodejust fine (Arch Linux).refack commentedon Aug 25, 2018
@lundibundi were you able to run
make testin that path?lundibundi commentedon Aug 26, 2018
@refack I've done a full
./configure && make -j4 testcommand successfully. Though I'm on Arch and it has python3 by default. I'll now try to do that in python2 env as I forgot about that.lundibundi commentedon Aug 26, 2018
Upd: I've successfully built it via
./configure && make -j4 testindev/node/弄得folder using python2 env.