Skip to content

Commit

Permalink
py3 & decode utf-8 in git2debcl for é
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthieu Berthomé committed Oct 10, 2022
1 parent ece486d commit f90ab5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ STRIP = strip
PANDOC = pandoc
SED = sed
RPMBUILD = rpmbuild
GIT2DEBCL = ./tools/git2debcl
GIT2DEBCL = LC_CTYPE=C.UTF-8 ./tools/git2debcl
PKGCONFIG = pkg-config

GIT_REPO = 0
Expand Down
4 changes: 2 additions & 2 deletions tools/git2debcl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

# Copyright (c) 2016, Antonio SJ Musumeci <[email protected]>

Expand All @@ -19,7 +19,7 @@ import subprocess
import argparse

def call(args):
return subprocess.Popen(args,stdout=subprocess.PIPE).communicate()[0].decode()
return subprocess.Popen(args,stdout=subprocess.PIPE).communicate()[0].decode('utf-8')

def git_tags():
args = ["git", "tag", '-l']
Expand Down

0 comments on commit f90ab5f

Please sign in to comment.