shenwei356/brename

no match on UTF-8 chars

Opened this issue · 3 comments

Tried to rename some french files with UTF-8 chars in it (û) and it seems it does not even match.

image

It works for me. Is your terminal UTF8?

$ ls
2022-août_alan.pdf

$ brename -il -p '^.*août.*$'
[INFO] main options:
[INFO]   ignore case: true
[INFO]   search pattern: (?i)^.*août.*$
[INFO]      skip filters: ^\.
[INFO]   include filters: .
[INFO]   search paths: ./
[INFO] 
2022-août_alan.pdf

it seems that yes

Screen Shot 2023-01-04 at 3 39 53 PM

Edit: with a file created by me it's working as expected (i guess it's how you tested also)

Screen Shot 2023-01-04 at 3 43 51 PM

So the point must be on how and where the file was created. will try to find an exemple file to reproduce

one thing i could think about it's that the file wasn't created by me but downloaded. maybe the encoding of the file name is not utf8 i must check with a file created by me