From 1abf354630b197ac3bbc40d391e01c5a93ee8032 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 30 Jan 2011 07:41:09 +0000 Subject: [PATCH] minor update --- lib/parse/cmdline.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index f99f0ba11..1e4ca063c 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -547,10 +547,9 @@ def cmdLineParser(): args = [] for arg in sys.argv: try: - args.append(getUnicode(arg, sys.getfilesystemencoding())) + args.append(getUnicode(arg, sys.stdin.encoding or sys.getfilesystemencoding())) except: args.append(getUnicode(arg, "utf8")) - (args, _) = parser.parse_args(args) if not args.direct and not args.url and not args.list and not args.googleDork and not args.configFile\ and not args.requestFile and not args.updateAll and not args.smokeTest and not args.liveTest\