[Pkg-octave-commit] [SCM] utils branch, master, updated. d60f04a977bd96ea1bdd4f9371013bb9fcf89136
Rafael Laboissiere
rafael at debian.org
Sat Jun 6 13:39:40 UTC 2009
The following commit has been merged in the master branch:
commit d60f04a977bd96ea1bdd4f9371013bb9fcf89136
Author: Rafael Laboissiere <rafael at debian.org>
Date: Sat Jun 6 13:39:36 2009 +0000
Decode UTF-8 names before encoding into MIME-Q
diff --git a/git-commit-notice b/git-commit-notice
index cb6c44d..c7de41b 100755
--- a/git-commit-notice
+++ b/git-commit-notice
@@ -147,7 +147,7 @@ generate_email()
# The committer will be obtained from the latest existing rev; so
# for a deletion it will be the oldrev, for the others, then newrev
committer=$(git show --pretty=full -s $rev |
- perl -M'Encode qw/encode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".$1."\"") . $2}e);')
+ perl -M'Encode qw/encode decode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".decode("UTF-8",$1)."\"") . $2}e);')
# The email subject will contain the best description of the ref
# that we can build from the parameters
describe=$(git describe $rev 2>/dev/null)
@@ -223,7 +223,7 @@ generate_commit_log()
{
rev=$1
committer=$(git show --pretty=full -s $rev |
- perl -M'Encode qw/encode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".$1."\"") . $2}e);')
+ perl -M'Encode qw/encode decode/' -n -e 'print if (s{^Commit: (.*)( <.*>)}{encode("MIME-Q", "\"".decode("UTF-8",$1)."\"") . $2}e);')
## Filter added lines in diff output
bugs=$(git diff-tree -c -p $rev | grep '^\+' | perl -e '
--
utils
More information about the Pkg-octave-commit
mailing list