read(1) returns string of length 2

wolfgang haefelinger wh2005 at web.de
Wed Nov 24 16:08:39 EST 2004


Hi,

works fine for me with 2.4c1! Don't even need to  install
Japanese codecs now as it's already done. Shame that this
not mentioned.

I believe it's a bug but perhaps in the installed
Japanese Codecs.

Thanks to all provided feedback,
Wolfgang.


"George Yoshida" <ml at dynkin.com> wrote in message 
news:co29n9$m4p$1 at dojima-n0.hi-ho.ne.jp...
> wolfgang haefelinger wrote:
>
>> Actually,  everything is fine until the codecs reader is about
>> to read '3b'. Instead of delivering this as next unicode char,
>> I'm getting '3b' and '0d' as string of length 2.
>
> I tried this out with Python 2.3 and 2.4 and noticed that they
> handle input streams differently.
> With 2.4 I get the same result as Java:
>
>   0x5408 0x8a08 0x6642 0x9593 0x3b 0xd 0xa
>
> (There's no {} marks.)
>
> This makes me wonder where the difference comes from?
> Is this a bug in 2.3 or a new feature in 2.4?
>
> -- george 





More information about the Python-list mailing list