Skip to content

Commit 6123044

Browse files
authored
Describe encoding requirements
* Describe encoding requirements * Change History date
1 parent 8ed0812 commit 6123044

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

peps/pep-0829.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,20 @@ continues.
215215
continues to the next entry point.
216216

217217

218+
Encoding
219+
--------
220+
221+
``<name>.start`` files **MUST** be encoded with `utf-8-sig
222+
<https://docs.python.org/3.14/library/codecs.html#module-encodings.utf_8_sig>`_,
223+
i.e. UTF-8 with optional byte-order mark.
224+
225+
``<name>.pth`` files **SHOULD** also be ``utf-8-sig`` encoded as well.
226+
Currently, decoding ``<name>.pth`` files falls back to the current locale if
227+
not encoded with ``utf-8-sig``, but this PEP deprecates that support for 5
228+
years, after which ``<name>.pth`` files **MUST** be encoded with ``utf-8-sig``
229+
as well.
230+
231+
218232
.. _future:
219233

220234
Future Improvements
@@ -467,6 +481,12 @@ Open Issues
467481
Change History
468482
==============
469483

484+
``19-Apr-2026``
485+
486+
* Added a description of the encoding requirements for ``<name>.start`` and
487+
``<name>.pth`` files.
488+
* Update the migration guidelines.
489+
470490
`15-Apr-2026 <https://discuss.python.org/t/pep-829-structured-startup-configuration-files/106789/99>`__
471491

472492
* During the deprecation period, warnings about ``import`` lines in

0 commit comments

Comments
 (0)