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 gvanrossum
Recipients alexandre.vassalotti, christian.heimes, gvanrossum
Date 2007-10-14.15:23:42
SpamBayes Score 0.012604621
Marked as misclassified No
Message-id <ca471dc20710140823y6e6a8f77u9d9750a5e84708bc@mail.gmail.com>
In-reply-to <47123032.2050809@cheimes.de>
Content
Only a few modules are involved in the bootstrap. The filename is
mostly used to display in the traceback. There is already a fallback
in the traceback-printing code that tries to look through sys.path for
a file matching the module if it can't open the filename from the code
object.

So I suggest to do something much simpler -- if the default encoding
isn't set yet, use ASCII + replace, and leave it at that -- don't
bother fixing these things later.

Another thought: when installed, the built-in modules are compiled to
byte code by compileall.py, which runs late enough so that the
filesystem encoding is known and everything can be done right.

I have a question for Alexandre related to frozen.c -- why is there a
mode line with an encoding involved in freezing hello.py?
History
Date User Action Args
2007-10-14 15:23:43gvanrossumsetspambayes_score: 0.0126046 -> 0.012604621
recipients: + gvanrossum, christian.heimes, alexandre.vassalotti
2007-10-14 15:23:43gvanrossumlinkissue1272 messages
2007-10-14 15:23:42gvanrossumcreate