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 | theller |
|---|---|
| Recipients | theller |
| Date | 2007年08月28日.06:05:51 |
| SpamBayes Score | 0.24458891 |
| Marked as misclassified | No |
| Message-id | <1188281153.24.0.208218954264.issue1040@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
In my german version of winXP SP2, python3 cannot import the time module:
c:\svn\py3k\PCbuild>python_d
Python 3.0x (py3k:57600M, Aug 28 2007, 07:58:23) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf8' codec can't decode bytes in position 9-11:
invalid data
[36719 refs]
>>> ^Z
The problem is that the libc '_tzname' variable contains umlauts. For
comparison, here is what Python2.5 does:
c:\svn\py3k\PCbuild>\python25\python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.tzname
('Westeurop\xe4ische Normalzeit', 'Westeurop\xe4ische Normalzeit')
>>> |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年08月28日 06:05:53 | theller | set | spambayes_score: 0.244589 -> 0.24458891 recipients: + theller |
| 2007年08月28日 06:05:53 | theller | set | spambayes_score: 0.244589 -> 0.244589 messageid: <1188281153.24.0.208218954264.issue1040@psf.upfronthosting.co.za> |
| 2007年08月28日 06:05:53 | theller | link | issue1040 messages |
| 2007年08月28日 06:05:51 | theller | create | |