diff options
author | Martin Liska <mliska@suse.cz> | 2021-01-06 08:11:57 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-01-06 08:26:10 +0100 |
commit | 57706dd7e001d8302b596521217827855324e748 (patch) | |
tree | feeaa5162dd2fd4f0dfa4452d9694414857a39db /contrib/gcc-changelog/git_email.py | |
parent | ac3966e315ada63eb379d560a012fa77c3909155 (diff) | |
download | gcc-57706dd7e001d8302b596521217827855324e748.zip gcc-57706dd7e001d8302b596521217827855324e748.tar.gz gcc-57706dd7e001d8302b596521217827855324e748.tar.bz2 |
gcc-changelog: workaround for utf8 filenames
contrib/ChangeLog:
* gcc-changelog/git_commit.py: Add decode_path function.
* gcc-changelog/git_email.py: Use it in order to solve
utf8 encoding filename issues.
* gcc-changelog/git_repository.py: Likewise.
* gcc-changelog/test_email.py: Test it.
Diffstat (limited to 'contrib/gcc-changelog/git_email.py')
-rwxr-xr-x | contrib/gcc-changelog/git_email.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/gcc-changelog/git_email.py b/contrib/gcc-changelog/git_email.py index 5b53ca4..00ad004 100755 --- a/contrib/gcc-changelog/git_email.py +++ b/contrib/gcc-changelog/git_email.py @@ -22,7 +22,7 @@ from itertools import takewhile from dateutil.parser import parse -from git_commit import GitCommit, GitInfo +from git_commit import GitCommit, GitInfo, decode_path from unidiff import PatchSet, PatchedFile @@ -52,8 +52,8 @@ class GitEmail(GitCommit): modified_files = [] for f in diff: # Strip "a/" and "b/" prefixes - source = f.source_file[2:] - target = f.target_file[2:] + source = decode_path(f.source_file)[2:] + target = decode_path(f.target_file)[2:] if f.is_added_file: t = 'A' |