This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Broken link to PEP 263 in Python 2.7 error message
Type: Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: lemburg, mjpieters, ned.deily, otus, python-dev
Priority: normal Keywords: patch

Created on 2014-06-17 13:00 by otus, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
0001-Fix-link-to-PEP-263-in-encoding-error-message.patch otus, 2014-06-17 13:00 [PATCH] Fix link to PEP 263 in encoding error message
Messages (8)
msg220821 - (view) Author: Jan Varho (otus) * Date: 2014-06-17 13:00
When trying to run a file with non-ASCII symbols without declaring an encoding, python 2.7 gives the following error:

  File "foo.py", line 2
SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

That link is broken, however. The attached patch fixes the link.

Python 3 (.4) has the correct link already.
msg220822 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2014-06-17 13:04
On 17.06.2014 15:00, Jan Varho wrote:
> 
> New submission from Jan Varho:
> 
> When trying to run a file with non-ASCII symbols without declaring an encoding, python 2.7 gives the following error:
> 
>   File "foo.py", line 2
> SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
> 
> That link is broken, however. The attached patch fixes the link.

Are you sure ? The links works for me.

BTW: This is more a case for a python.org bug report than one
for Python itself.
msg220823 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2014-06-17 13:04
On 17.06.2014 15:03, M.-A. Lemburg wrote:
> On 17.06.2014 15:00, Jan Varho wrote:
>>
>> New submission from Jan Varho:
>>
>> When trying to run a file with non-ASCII symbols without declaring an encoding, python 2.7 gives the following error:
>>
>>   File "foo.py", line 2
>> SyntaxError: Non-ASCII character '\xc3' in file fo.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
>>
>> That link is broken, however. The attached patch fixes the link.
> 
> Are you sure ? The links works for me.

Ah, sorry. The links does work, but doesn't redirect to the
correct PEP.

> BTW: This is more a case for a python.org bug report than one
> for Python itself.
msg220866 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2014-06-17 19:25
New changeset f80199b009ef by Ned Deily in branch '2.7':
Issue #21789: fix broken link (reported by Jan Varho)
http://hg.python.org/cpython/rev/f80199b009ef
msg220867 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-06-17 19:26
Thanks for the report!
msg222900 - (view) Author: Martijn Pieters (mjpieters) * Date: 2014-07-13 01:38
The *redirect* should be corrected here too!

http://www.python.org/peps/pep-0263.html is still going to be in use for some time to come, a simple redirect *on Python.org* to the correct location would be helpful.
msg222902 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-07-13 02:16
Martijn, please report problems with the python.org web site to its issue tracker: https://github.com/python/pythondotorg/issues.  Thanks!
msg222927 - (view) Author: Martijn Pieters (mjpieters) * Date: 2014-07-13 14:02
Yeah, I should have thought of that in the first place. Done, and thanks, Ned!
History
Date User Action Args
2022-04-11 14:58:05adminsetgithub: 65988
2014-07-13 14:02:08mjpieterssetmessages: + msg222927
2014-07-13 02:16:13ned.deilysetmessages: + msg222902
2014-07-13 01:38:40mjpieterssetnosy: + mjpieters
messages: + msg222900
2014-06-17 19:26:18ned.deilysetstatus: open -> closed

nosy: + ned.deily
messages: + msg220867

resolution: fixed
stage: resolved
2014-06-17 19:25:30python-devsetnosy: + python-dev
messages: + msg220866
2014-06-17 13:04:49lemburgsetmessages: + msg220823
2014-06-17 13:04:02lemburgsetnosy: + lemburg
messages: + msg220822
2014-06-17 13:00:08otuscreate