New submission from Erlend Egeberg Aasland <erlend.aasl...@innova.no>:

GitHub does not play well with other file encodings than UTF-8. For example, 
when the "suggestion" in 
https://github.com/python/cpython/pull/20538#discussion_r552926126 was applied, 
GitHub silently converted Lib/sqlite3/test/types.py from ISO-8859 to UTF-8, as 
seen in the resulting commit fd4f65141925f2d84e0efd17ca4b9395c171d7ba. Apart 
from being annoying, this created an inconsistency between the `#-*- coding: 
iso-8859-1 -*-` header in Lib/sqlite3/test/types.py and its actual encoding 
(now UTF-8).

I suggest to convert Lib/sqlite3/test/* to UTF-8 encoding for consistency.

$ file Lib/sqlite3/test/*.py
Lib/sqlite3/test/backup.py:        Python script text executable, ASCII text
Lib/sqlite3/test/dbapi.py:         Python script text executable, ISO-8859 text
Lib/sqlite3/test/dump.py:          Python script text executable, ASCII text
Lib/sqlite3/test/factory.py:       Python script text executable, ISO-8859 text
Lib/sqlite3/test/hooks.py:         Python script text executable, ISO-8859 text
Lib/sqlite3/test/regression.py:    Python script text executable, ISO-8859 text
Lib/sqlite3/test/transactions.py:  Python script text executable, ISO-8859 text
Lib/sqlite3/test/types.py:         Python script text executable, ISO-8859 text
Lib/sqlite3/test/userfunctions.py: Python script text executable, UTF-8 Unicode 
text

----------
components: Library (Lib)
messages: 384543
nosy: berker.peksag, erlendaasland
priority: normal
severity: normal
status: open
title: Normalise file encodings in Lib/sqlite3/test/
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42847>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to