From a4a24048d4ab49620a6f98c168939272650471a7 Mon Sep 17 00:00:00 2001 From: Steven Hiscocks Date: Wed, 27 Feb 2013 18:31:47 +0000 Subject: [PATCH] Minor tweaks to fail2ban-regex for encoding --- fail2ban-regex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fail2ban-regex b/fail2ban-regex index 20a67975..f9746ce4 100755 --- a/fail2ban-regex +++ b/fail2ban-regex @@ -111,7 +111,8 @@ class Fail2banRegex: print "This tools can test regular expressions for \"fail2ban\"." print print "Options:" - print " -e, --encoding set the file encoding" + print " -e ENCODING, --encoding=ENCODING" + print " set the file encoding. default:system locale" print " -h, --help display this help message" print " -V, --version print the version" print " -v, --verbose verbose output" @@ -352,6 +353,7 @@ if __name__ == "__main__": try: hdlr = open(cmd_log, 'rb') print "Use log file : " + cmd_log + print "Use encoding : " + fail2banRegex.encoding print for line in hdlr: try: