-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeDecodeError on python3 with pygments and unicode source file #56
Comments
What error message are you getting? On 2.7, I get an exception about a missing encoding declaration. Once I add
to the top of the file, everything works. On Python 3, I get this:
Is this what you're seeing? (This backtrace is just plain weird to me--where on earth did Python 2.7 enter the picture? I thought this was on 3.2.) |
Python 2.7 came from a stored breakpoint I had sitting around. (so, never mind) So with Python 3.2 I'm getting:
I'm not utf-8-competent enough to decide who's right here: Is what you've got valid utf-8 or no? I'm going to close this bug for now on the assumption that the complaint is legitimate. Please reopen if that's wrong or if this is somehow pudb's fault. |
I confirm this bug. See files that contain 100% valid utf-8 symbols. One of this files crash pudb, while other doesn't. I use latest version from pypi. |
Reproduced. |
Try running
python3 -m pudb test.py
with this source code. Pudb will crash immediately.Note the Unicode characters: ươ.
The text was updated successfully, but these errors were encountered: