Use ‘UTF-8’ as a default source file encoding (PEP 3120)

Bug #881109 reported by Denis Zawada
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
awkwardduet
Triaged
High
Denis Zawada

Bug Description

Python 3 uses ‘UTF-8’ as its default source file encoding [1], rather than ASCII.

Unless different encoding is explicitly specified, set utf-8 explicitly by adding the "#encoding: utf-8" manifest to the top of the file.

[1] http://www.python.org/dev/peps/pep-3120/

Denis Zawada (ohdeno)
summary: - Use ‘UTF-8’ as a default source file encoding
+ Use ‘UTF-8’ as a default source file encoding (PEP 3120)
Denis Zawada (ohdeno)
Changed in awkwardduet:
status: Triaged → In Progress
assignee: nobody → Denis Zawada (ohdeno)
Denis Zawada (ohdeno)
Changed in awkwardduet:
status: In Progress → New
status: New → Confirmed
Denis Zawada (ohdeno)
Changed in awkwardduet:
milestone: 1.1a2 → 1.1a3
Denis Zawada (ohdeno)
Changed in awkwardduet:
importance: Wishlist → High
Revision history for this message
Denis Zawada (ohdeno) wrote :

The issue is that comments are scrubbed from AST, so there’s really no easy way to add this without hacking lib2to3. I don’t really have time to try to fix this now.

Changed in awkwardduet:
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.