[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for fixing it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset dcf4fbf446ca by Benjamin Peterson in branch '3.3': fix test on debug builds (closes #20731) http://hg.python.org/cpython/rev/dcf4fbf446ca -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Georg Brandl
Georg Brandl added the comment: This needs to be fixed for 3.3.5rc2. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bug

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-03-01 Thread koobs
koobs added the comment: Regressions on FreeBSD buildbots (test_coding) http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.0%203.3/builds/626/steps/test/logs/stdio -- nosy: +koobs ___ Python tracker

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-28 Thread STINNER Victor
STINNER Victor added the comment: Regressions on buildbots, examples: http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.3/builds/1458 http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.3/builds/1546 http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.3/bui

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch, this is applied to 3.3 and 3.4. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset ade5e4922a54 by Martin v. Löwis in branch '3.3': Issue #20731: Properly position in source code files even if they http://hg.python.org/cpython/rev/ade5e4922a54 -- nosy: +python-dev ___ Python tracker

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread Georg Brandl
Georg Brandl added the comment: Just in time for 3.3.5... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can't test on Windows but may be this patch fixes the issue. -- keywords: +patch nosy: +larry stage: -> patch review versions: +Python 3.4 Added file: http://bugs.python.org/file34211/issue20731.patch ___ Python

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +georg.brandl priority: normal -> release blocker ___ Python tracker ___ ___ Python-bugs-list ma

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-24 Thread OPi
OPi added the comment: All works fine with UTF-8. All works fine with latin-1 (or other) and Windows end of line. Maybe this issue is important, "First line can be executed twice": http://bugs.python.org/issue18960 -- ___ Python tracker

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread Musashi Tamura
Musashi Tamura added the comment: You can avoid this by changing end of line to CRLF. (I don't know why) I attach a simpler test case. -- nosy: +miwa Added file: http://bugs.python.org/file34210/test1.py ___ Python tracker

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread R. David Murray
R. David Murray added the comment: Oops, I missed the fact that it was Benjamin that added Serhiy...Benjamin can add himself if he wants :) -- nosy: -benjamin.peterson ___ Python tracker _

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: I can reproduce the problem. I started debugging it; the issue is that, after reading the two comment lines (and detecting the source encoding), fileio_readinto gets called, which calls read(), and read() returns 17 (bytes read), with are "-\n\nprint('test')

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-22 Thread R. David Murray
R. David Murray added the comment: For whatever it's worth, it works fine for me on 3.3 tip on unix. The fact that it says line 3 and shows just a - is suspicious. -- nosy: +r.david.murray ___ Python tracker

[issue20731] Python 3.3.4: SyntaxError with correct source code encoding # -*- coding: latin-1 -*-

2014-02-22 Thread OPi
New submission from OPi: The test program: #!/usr/bin/env python # -*- coding: latin-1 -*- print('test') is correct in Python 3.3.3, but cause this error with Python 3.3.4: File "./test.py", line 3 - ^ SyntaxError: invalid syntax I use Windows 7, with bash (of Cygwin) and Python 3.3.