[Bug]: fs.readdir
does not work correctly with files that contain umlauts
#42035
Labels
31-x-y
bug 🪲
component/node-integration
has-repro-repo
Issue can be reproduced by cloning a git repo
platform/windows
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
31.0.0-alpha.3
What operating system are you using?
Windows
Operating System Version
Windows 11
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
I'm trying to read files from a directory using node's
fs.readdir
function. When there is a file with umlauts in the name, for exampleäöü.txt
it should return'äöü.txt'
.Actual Behavior
When using
fs.readdir
in an electron application it returns'äöü.txt'
. Invoking the same code from node (v20.12.2) works as expected.Testcase Gist URL
https://github.com/oliverschwendener/nodejs-readdir-test
Additional Information
The provided GitHub repo has a guide on how to reproduce the issue.
The text was updated successfully, but these errors were encountered: