facebook/zstd

zstd fails to process some filenames on Windows [we need a hero]

Open

#3,882 建立於 2024年1月24日

在 GitHub 查看
 (19 留言) (0 反應) (0 負責人)C (2,481 fork)batch import
help wanted

倉庫指標

Star
 (27,100 star)
PR 合併指標
 (平均合併 50分鐘) (30 天內合併 2 個 PR)

描述

Windows 7 x64, zstd 1.5.5

$ dir /b
birds.txt
pájaros.txt
vögel.txt
птицы.txt

$ zstd *.*
zstd: can't stat pajaros.txt : No such file or directory -- ignored
zstd: can't stat vogel.txt : No such file or directory -- ignored
  2 files compressed : 85.71% (  3.00 KiB =>   2.57 KiB)
 
$ dir /b *.zst
birds.txt.zst
птицы.txt.zst

@Cyan4973 said zstd doesn't do anything special, it uses the C standard fopen() function. This should be naturally compatible with any utf-8 character set. But I suspect Windows does something different with the character set, so there might be a need to employ other non-portable Windows variants of > fopen for these scenarios.

貢獻者指南