src: don't use fopen() in require() fast path
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 13 Aug 2015 23:56:30 +0000 (01:56 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 17 Aug 2015 18:17:55 +0000 (20:17 +0200)
commita593cb7682df7e45550d1ebe26be310dc7bef6bd
tree9d0fd67a07471b3b7915fafc400ebbd63d7a8b04
parent4c06515a2f13c9b0890b374bb3ab3c0740c282e2
src: don't use fopen() in require() fast path

Fix a regression that was introduced in commit 1bbf8d0 ("lib: speed up
require(), phase 2") where file paths with Unicode characters fail to
load on Windows.

Fixes: https://github.com/nodejs/node/issues/2236
PR-URL: https://github.com/nodejs/node/pull/2377
Reviewed-By: Bert Belder <bertbelder@gmail.com>
src/node_file.cc
test/parallel/test-require-unicode.js [new file with mode: 0644]