PhoneixS / advanced-find

Automatically exported from code.google.com/p/advanced-find
0 stars 0 forks source link

Find All not work in directory include sub-folder contains non-utf8 files (windows-1251) #56

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Entered 'something' in 'Find what'
2. Selected "Directory include sub-folder" in Options
3. Selected 'All Documents in Directory'
4. Click "Find All"

What is the expected output? What do you see instead?
If document contains cirillic char from windows-1251 then Find All not work.
If document not contains cirillic char from windows-1251 then Find All is work.

Original issue reported on code.google.com by Kopytov....@gmail.com on 11 Mar 2012 at 11:36

Attachments:

GoogleCodeExporter commented 9 years ago
The function works fine at both attached files in my test.
What the pattern you used?

Original comment by swatch.c...@gmail.com on 11 Mar 2012 at 11:50

GoogleCodeExporter commented 9 years ago
I found the problem after test again.
I will try to fix this.
Thanks for your report.

Original comment by swatch.c...@gmail.com on 12 Mar 2012 at 11:40

GoogleCodeExporter commented 9 years ago
grep can't process windows-1251 stings if your locale setting is not that.
The function uses grep and that why it skips the documents.
I have no idea how to fix this.

Original comment by swatch.c...@gmail.com on 14 Mar 2012 at 11:46

GoogleCodeExporter commented 9 years ago
I use in this test pattern "ENV".

Locale 1251 is installed in system:
>locale -a
C
POSIX
ru_RU.cp1251
ru_RU.utf8

Original comment by Kopytov....@gmail.com on 15 Mar 2012 at 9:42