Improvements to Text Search in Binary files

Aperta
#583 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
cli, search

Direzione di ricerca

Start with the binary file search behavior described in this issue and compare it with the linked FarManager and ripgrep reports; the payload does not name ugrep source files or tests. Reproduce the attached test data with case-insensitive search for “пРиВеТ” across ANSI, UTF-8, UTF-16LE, and UTF-16BE files. Done means finding all matching occurrences across the encodings.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

I compared several file text search utilities to see how they handle complex cases; here are the results:

UnrealCommander v4.21 x64 - (24/24) ✅
FarManager v3.0 (6758) x64 - (24/24) ✅
FarManager v3.0 (6699) x64 - (20/24) ❌
DoubleCommander v1.2.8 x64 - (20/24) ❌
TotalCommander v11.58.1 x64 - (18/24) ❌
Notepad++ v8.9.9.1 x64 - (13/24) ❌
dnGREP v5.0.80 x64 - (12/24) ❌
grepWin v2.1.11.1429 x64 - (10/24) ❌
TextCrawler v3.1.3 - (12/24) ❌
ripgrep v16.0.0 (-i -E auto пРиВеТ) - (2/24) ❌
ugrep v7.8.5 (-i -a пРиВеТ *) - (6/24) ❌
AstroGrep v4.4.9 - (14/24) ❌
FileLocator Pro 2022 b3569 - (12/24) ❌
Searcher v3.1.0 - (0/24) ❌
010 Editor v17.0.1 x64 - (6/24) ❌
SearchMyFiles v3.36 x64 - (0/24) ❌
Directory Opus v13.25 x64 - (4/24) ❌
FreeCommander XE 2026 b941 x32 - (6/24) ❌
MultiCommander v16.6 b3240 x64 - (2/24) ❌
XYplorer v28.50.0100 x64 - (14/24) ❌

The search criteria are as follows: find all occurrences of the text “пРиВеТ” (case-insensitive) in all files, regardless of encoding (ANSI, utf8, utf16le, utf16be)

I've attached a file containing test data below

StringSearchTest.zip

Generator_StringSearchTest.zip

Also:
https://github.com/FarGroup/FarManager/issues/1142
https://github.com/FarGroup/FarManager/commit/bf6590fb6d042606cf6110ec85f497bd42f4601e

https://github.com/doublecmd/doublecmd/discussions/3240

https://github.com/BurntSushi/ripgrep/issues/3639

Lingua principale
C++
Stelle
3.3k
Fork
148
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Genivia/ugrep

Tutte le issue di Genivia/ugrep

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.