diff options
author | Dmitry Selyutin <ghostmansd@gmail.com> | 2017-09-05 10:04:18 +0300 |
---|---|---|
committer | Dmitry Selyutin <ghostmansd@gmail.com> | 2017-09-08 17:27:55 +0300 |
commit | 3df666053421259b4f4ee32d4d67a8514ef126e4 (patch) | |
tree | 0cedbb996679dfc3b0859c08dc9d63c513c4707d /pygnulib/GLInfo.py | |
parent | 1fdadd2ce8c539c14f138d563214260f1a32baa3 (diff) | |
download | gnulib-3df666053421259b4f4ee32d4d67a8514ef126e4.tar.gz |
gnulib-tool.py: fix errors on building wget2; use UTF-8 in subprocess
Diffstat (limited to 'pygnulib/GLInfo.py')
-rw-r--r-- | pygnulib/GLInfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygnulib/GLInfo.py b/pygnulib/GLInfo.py index dd6b2675c4..646b20cf65 100644 --- a/pygnulib/GLInfo.py +++ b/pygnulib/GLInfo.py @@ -97,7 +97,7 @@ class GLInfo(object): counter = int() # Create counter result = string() # Create string args = ['git', 'log'] - result = sp.check_output(args).decode(ENCS['shell']) + result = sp.check_output(args).decode("UTF-8") # Get date as "Fri Mar 21 07:16:51 2008 -0600" from string pattern = re.compile('Date:[\t ]*(.*?)$', re.S | re.M) result = pattern.findall(result)[0] @@ -107,7 +107,7 @@ class GLInfo(object): # Use GNU date to compute the time in GMT args = ['date', '-d', result, '-u', '+%Y-%m-%d %H:%M:%S'] proc = sp.check_output(args) - result = string(proc, ENCS['shell']) + result = string(proc, "UTF-8") result = result.rstrip(os.linesep) return(result) @@ -294,7 +294,7 @@ Report bugs to <bug-gnulib@gnu.org>.''' if isdir(DIRS['git']): version_gen = joinpath(DIRS['build-aux'], 'git-version-gen') args = [version_gen, DIRS['root']] - result = sp.check_output(args).decode(ENCS['shell']) + result = sp.check_output(args).decode("UTF-8") result = result.strip() if result == 'UNKNOWN': result = string() |