cr0sh / jaso

Normalizes filenames to Unicode NFC, faster than convmv
Other
37 stars 3 forks source link

Unsuccessful filename normalization #16

Open gy-mate opened 1 year ago

gy-mate commented 1 year ago

I tried normalizing a file's name on an APFS volume: ~ % jaso "/Volumes/temp/RE_ Önkormányzati REDACTED.msg -> /Volumes/temp/RE_ Önkormányzati REDACTED.msg DONE; 1 files in 0.003973321 seconds

But jaso didn't normalize the filename as

Or does jaso do the normalization successfully anyway and the problem might be somewhere else, like

Thank you for your help in advance!

Debugging information: - OS: macOS 13.5.2 - App version: 1.0.0

cr0sh commented 1 month ago

I believe APFS does accept change from NFD to NFC (i.o.w. two representations are treated differently), and I tested on APFS too. I suspect SMB is the cause. Will try to reproduce but I need a confirmation for steps:

gy-mate commented 1 month ago

@cr0sh It seems to me that APFS is the issue indeed. I have a file named RE_ Önkormányzati ḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊḊ.txt and the normalization doesn't seem to be successful either with jaso or convmv:

https://github.com/user-attachments/assets/ca94fc3b-b4a1-441f-9b59-c6b56d6eebb3

Therefore I can't copy the file to the remote SMB server at any point of the process.

Currently I'm using macOS 15.0.1.