brename icon indicating copy to clipboard operation
brename copied to clipboard

no match on UTF-8 chars

Open fredleger opened this issue 2 years ago • 3 comments

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

image

fredleger avatar Dec 31 '22 10:12 fredleger

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

shenwei356 avatar Dec 31 '22 12:12 shenwei356

it seems that yes

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

fredleger avatar Jan 04 '23 14:01 fredleger

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

fredleger avatar Jan 04 '23 14:01 fredleger