Message187568
| Author |
serhiy.storchaka |
| Recipients |
Tomoki.Imai, alex.hartwig, asvetlov, ezio.melotti, kbk, loewis, ned.deily, pradyunsg, r.david.murray, roger.serwy, serhiy.storchaka, terry.reedy |
| Date |
2013年04月22日.15:32:15 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1366644735.14.0.220880176975.issue15809@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
An interactive Python console ignores a coding cookie line too.
$ cat test.py
# -*- coding: koi8-r -*-
print repr('йцук'), 'йцук', repr(u'йцук'), u'йцук'
$ LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python test.py
'\xe9\xf6\xf3\xea' йцук u'\u0418\u0416\u0421\u0419' ИЖСЙ
$ LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python
Python 2.7.4+ (2.7:0f31f38e8a17+, Apr 13 2013, 21:06:36)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> # -*- coding: koi8-r -*-
... print repr('йцук'), 'йцук', repr(u'йцук'), u'йцук'
'\xe9\xf6\xf3\xea' йцук u'\u0439\u0446\u0443\u043a' йцук
('\xe9\xf6\xf3\xea' is 'йцук' in cp1251 and 'ИЖСЙ' in koi8-r) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月22日 15:32:15 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, terry.reedy, kbk, ned.deily, ezio.melotti, roger.serwy, r.david.murray, asvetlov, alex.hartwig, pradyunsg, Tomoki.Imai |
| 2013年04月22日 15:32:15 | serhiy.storchaka | set | messageid: <1366644735.14.0.220880176975.issue15809@psf.upfronthosting.co.za> |
| 2013年04月22日 15:32:15 | serhiy.storchaka | link | issue15809 messages |
| 2013年04月22日 15:32:15 | serhiy.storchaka | create |
|