ViliamKopecky / bun-file-stat-diacritics-bugreport

Repository from Github https://github.comViliamKopecky/bun-file-stat-diacritics-bugreportRepository from Github https://github.comViliamKopecky/bun-file-stat-diacritics-bugreport

Bugreport for Bun.file().stat() with diacritics

While Bun.file('bořek.txt').exists() works fine, Bun.file('bořek.txt').stat() fails with ENOENT error when file contains diacritics.

bun run index.ts
alice.txt exists true
alice.txt stat 5

bořek.txt exists true
ENOENT: no such file or directory, stat 'bo�ek.txt'
    path: "bo�ek.txt",
 syscall: "stat",
   errno: -2,
    code: "ENOENT"


Bun v1.2.1 (macOS arm64)

About


Languages

Language:TypeScript 100.0%