facebook / facebook/zstd

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

Open
#3,882 19 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
C
Stars
27.9k
Forks
2.6k
Avg merge
1d 3h
Merged PRs (30d)
8

Description

Windows 7 x64, zstd 1.5.5

``` console
$ 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](https://github.com/facebook/zstd/issues/3537#issuecomment-1908628996)
> 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.