File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff 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
220234Future Improvements
@@ -467,6 +481,12 @@ Open Issues
467481Change 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
You can’t perform that action at this time.
0 commit comments