From f41bde38838a8bdc12714e00c49e8e1961780ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Duarte?= Date: Fri, 15 Dec 2023 14:37:38 +0000 Subject: [PATCH] normalize gitconfig's author field to UTF-8 NFC --- src/poetry/console/commands/init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/poetry/console/commands/init.py b/src/poetry/console/commands/init.py index 658b7a4a504..f7c3bb8a418 100644 --- a/src/poetry/console/commands/init.py +++ b/src/poetry/console/commands/init.py @@ -458,8 +458,9 @@ def _format_requirements(self, requirements: list[dict[str, str]]) -> Requiremen def _validate_author(self, author: str, default: str) -> str | None: from poetry.core.packages.package import AUTHOR_REGEX + from poetry.core.utils.helpers import combine_unicode - author = author or default + author = combine_unicode(author or default) if author in ["n", "no"]: return None