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.

Author loewis
Recipients Redoute, loewis
Date 2012-03-04.14:54:43
SpamBayes Score 6.193421e-09
Marked as misclassified No
Message-id <20120304155443.Horde.PTDyecL8999PU4IzQIVnG9A@webmail.df.eu>
In-reply-to <1330867970.99.0.664139618535.issue14192@psf.upfronthosting.co.za>
Content
> I have to take it, although I am not really convinced. The system  
> codepage probably differs from the console codepage (here 1152 vs.  
> 850). Print statements on the other hand are typical for console  
> programs. Calling python.exe (vs. pythonw.exe) means console program  
> means print output has to use console codepage as default.

I think in practice, this statement is incorrect for most applications.
When they use print, they want to create text files, and those will
be opened with notepad (or some other text editor on Windows), and will
have to be in cp1252. So guessing that it should be cp850 will be incorrect
most of the time.

In any case, you have perfectly described why the initial design decision
in Python 2 was to refuse to guess.
History
Date User Action Args
2012-03-04 14:54:44loewissetrecipients: + loewis, Redoute
2012-03-04 14:54:44loewislinkissue14192 messages
2012-03-04 14:54:43loewiscreate