From e41df664ebc5b951315f8a80649627547d9ce7fe Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 27 Nov 2022 12:11:22 +0100 Subject: [PATCH] Issue #82: Fix hachoir-grep CLI --- hachoir/grep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hachoir/grep.py b/hachoir/grep.py index 17788489..b1c46cc2 100644 --- a/hachoir/grep.py +++ b/hachoir/grep.py @@ -63,7 +63,7 @@ def parseOptions(): if len(arguments) < 2: parser.print_help() sys.exit(1) - pattern = str(arguments[0], "ascii") + pattern = arguments[0] filenames = arguments[1:] return values, pattern, filenames