Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized file renaming #6

Open
sergeevabc opened this issue Jan 24, 2024 · 2 comments
Open

Unauthorized file renaming #6

sergeevabc opened this issue Jan 24, 2024 · 2 comments
Assignees
Labels

Comments

@sergeevabc
Copy link

Windows 7 x64, rnd64 0.41

$ rnd -r 1k birds.txt
birds.txt generated
size: 1024 bytes
time: 0 s 15 ms

$ rnd -r 2k птицы.txt
птицы.txt generated
size: 2048 bytes
time: 0 s 15 ms

So far so good: birds = birds, птицы = птицы. But…

$ rnd -r 3k pájaros.txt
pajaros.txt generated
size: 3072 bytes
time: 0 s 16 ms

$ rnd -r 4k vögel.txt
vogel.txt generated
size: 4096 bytes
time: 0 s 16 ms

pájaros ≠ pajaros, vögel ≠ vogel

@sergeevabc
Copy link
Author

Err… Hello?

@Tinram
Copy link
Owner

Tinram commented May 29, 2024

Thank you @sergeevabc
Sorry for the delay.

Linux Ubuntu 22.04, rnd64 0.42

./rnd64 -r 1k birds.txt
birds.txt generated
size: 1024 bytes
time: 0 s 2 ms

./rnd64 -r 2k птицы.txt
птицы.txt generated
size: 2048 bytes
time: 0 s 2 ms

./rnd64 -r 3k pájaros.txt
pájaros.txt generated
size: 3072 bytes
time: 0 s 2 ms

./rnd64 -r 4k vögel.txt
vögel.txt generated
size: 4096 bytes
time: 0 s 2 ms

Win 7 x64, rnd64 0.42
(terminal, codepage default)

rnd64 -r 1k birds.txt
birds.txt generated
size: 1024 bytes
time: 0 s 15 ms

rnd64 -r 2k птицы.txt
birds.txt generated
size: 2048 bytes
time: 0 s 15 ms

rnd64 -r 3k pájaros.txt
pßjaros.txt generated
size: 3072 bytes
time: 0 s 0 ms

rnd64 -r 4k vögel.txt
v÷gel.txt generated
size: 4096 bytes
time: 0 s 15 ms

птицы.txt auto-converted to birds.txt is amusing!

chcp 65001
(Unicode)
(generate files ...)
useless

chcp 1252
(Latin-1)
(generate files ...)
pájaros.txt and vögel.txt filenames display correctly.

Conclusion: Windows codepage madness.
Second conclusion: I don't like Windows.

@Tinram Tinram self-assigned this May 29, 2024
@Tinram Tinram added the wontfix label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants