Skip to content

Commit de80432

Browse files
committed
regrtest: only log utf8=1 if UTF-8 Mode is enabled
On Python 3.14, it's disabled by default.
1 parent 08c9f7c commit de80432

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Lib/test/libregrtest/utils.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ def display_header(use_resources: dict[str, str | None],
662662
else:
663663
encodings.append(f'locale={locale_encoding}')
664664
encodings.append(f'FS={fs_encoding}')
665-
if not sys.flags.utf8_mode:
666-
encodings.append('utf8=0')
665+
if sys.flags.utf8_mode:
666+
encodings.append('utf8=1')
667667
if (not sys.flags.ignore_environment
668668
and os.environ.get('PYTHONCOERCECLOCALE') == '0'):
669669
encodings.append('coerce=0')

0 commit comments

Comments
 (0)