Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation problem over UTF-8 encoding #183

Open
diega opened this issue Apr 25, 2022 · 0 comments
Open

Validation problem over UTF-8 encoding #183

diega opened this issue Apr 25, 2022 · 0 comments

Comments

@diega
Copy link

diega commented Apr 25, 2022

My last name has the character ó in it. I have my .gitconfig with the following section

[user]
  name = Diego López León
  email = [email protected]

and I uncommented the default prepare-commit-msg hook for adding signatures as follows

SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE"
if test -z "$COMMIT_SOURCE"
then
  /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE"
fi

This setup generates the following commit diega/besu@6940f8f9 which doesn't validates DCO properly. On the other hand I had created on another computer with similar setup this other commit diega/besu@017d9c95 which validates just fine.

TL;DR;

[...]
From: =?UTF-8?q?Diego=20L=C3=B3pez=20Le=C3=B3n?= <[email protected]>
[...]
Signed-off-by: Diego López León <[email protected]>

validates. And

[...]
From: =?UTF-8?q?Diego=20Lo=CC=81pez=20Leo=CC=81n?= <[email protected]>
[...]
Signed-off-by: Diego López León <[email protected]>

doesn't

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant