dharple / detox

Tames problematic filenames
BSD 3-Clause "New" or "Revised" License
332 stars 19 forks source link

Handle 2044 (⁄ Fraction Slash) #106

Open AngelBlue01 opened 1 year ago

AngelBlue01 commented 1 year ago

Dragging and dropping a link from a hyperlink from browser in KDE creates files that contain the URL, but they use the ⁄ (Fraction Slash) character instead of / (forward slash) character. I have already filed a bug with KDE.

In the meantime, I would like to use detox to replace this character with a _ (underscore). However, If I add this pattern to my .tbl file with

2044 _ # ⁄ (Fraction Slash)

and then run detox -s mysafe /home/thomas/downloads/https:⁄⁄www.google.com.com⁄.desktop detox runs but it immediately jumps to consuming all of my CPU cycles and the file retains the original name.

If I remove that line and run the command again, detox runs as expected, replacing other characters per my .tbl file.

dharple commented 7 months ago

Very strange. What version of detox are you running? detox -V

Also, can you run ls FILE | hexdump -C so I can see the Unicode? Thanks!