From f9b9310845be87064cd674b268421dd9a10c9af1 Mon Sep 17 00:00:00 2001 From: Hugo Sansaqua Date: Sun, 22 Oct 2023 16:19:44 +0900 Subject: [PATCH] Add encoding comment to script --- src/poetry/utils/env/script_strings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/poetry/utils/env/script_strings.py b/src/poetry/utils/env/script_strings.py index 246649867f3..75dafb16619 100644 --- a/src/poetry/utils/env/script_strings.py +++ b/src/poetry/utils/env/script_strings.py @@ -1,9 +1,12 @@ from __future__ import annotations +import locale + import packaging.tags GET_SYS_TAGS = f""" +# encoding: {locale.getpreferredencoding(False)} import importlib.util import json import sys