diff --git a/peps/pep-0829.rst b/peps/pep-0829.rst index 8e0904e94e2..bf040ec815d 100644 --- a/peps/pep-0829.rst +++ b/peps/pep-0829.rst @@ -215,6 +215,20 @@ continues. continues to the next entry point. +Encoding +-------- + +``.start`` files **MUST** be encoded with `utf-8-sig +`_, +i.e. UTF-8 with optional byte-order mark. + +``.pth`` files **SHOULD** also be ``utf-8-sig`` encoded as well. +Currently, decoding ``.pth`` files falls back to the current locale if +not encoded with ``utf-8-sig``, but this PEP deprecates that support for 5 +years, after which ``.pth`` files **MUST** be encoded with ``utf-8-sig`` +as well. + + .. _future: Future Improvements @@ -467,6 +481,12 @@ Open Issues Change History ============== +``19-Apr-2026`` + +* Added a description of the encoding requirements for ``.start`` and + ``.pth`` files. +* Update the migration guidelines. + `15-Apr-2026 `__ * During the deprecation period, warnings about ``import`` lines in