[Python-bugs-list] [ python-Bugs-774680 ] Non-ASCII characters bugs

SourceForge.net noreply@sourceforge.net
Sun, 20 Jul 2003 14:10:42 -0700


Bugs item #774680, was opened at 2003-07-20 22:23
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=774680&group_id=5470

Category: IDLE
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Bartolomé Sintes Marco (barto)
Assigned to: Nobody/Anonymous (nobody)
Summary: Non-ASCII characters bugs

Initial Comment:
I have downloaded and installed Python 2.3 RC1 in a
Spanish Windows 98 SE computer. IDLE 1.0 does not work
very well:

a) When I open with IDLE 1.0 RC1 a program written
with IDLE 0.8, Spanish non-ASCII characters (like
voyels with accents) are changed to wrong characters.
Some examples:
í -> á
ó -> ó
ú -> ú

b) With IDLE 1.0 rc1 I can create a new .py file with
non-ASCII characters and save it, but if I reload the
same file  and I modify it, then I can not save it
(neither save it as). If I delete the non-ASCII
characters, then I can save (or save it) without problems.

If you need more information my adress is
BartolomeSintes at ono.com

Thanks for your great work!

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2003-07-20 23:10

Message:
Logged In: YES 
user_id=21627

Why do you think this is a bug in IDLE 1.0, when it is IDLE
0.8 which displays the data incorrectly? Can you report what
notepad.exe thinks about these files? Or better, can you
please attach one such file here?

Can you try adding a line
# -*- coding: iso-8859-1 -*-

as the first line of your file before saving it in IDLE, and
see whether this changes anything?

Did IDLE ever propose to add such a line?

Did you somehow change the default configuration of IDLE, 
through Options/Configure IDLE/General? Did you edit
site.py, or sitecustomize.py to change the default encoding`?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=774680&group_id=5470