On 04/14/2011 01:05 AM, Martin [gz] wrote:
> You can reproduce this on Unix (provided you have the relevant locale
> installed) with:
>
> LANG=jp_JP.EUC-JP ./bzr --no-plugins plugins
>
> The Python UTF-8 and ISO-8859-* codecs don't have this issue.
>
Now that is pretty ugly. Having the codec change the behavior is pretty
harsh.
I wonder if encodings.iso_8859_1.StreamWriter does accept generators,
and hence we generally don't see this.
Anyway, adding list(generator) would be fine with me, I don't think it
needs to be a generator.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04/14/2011 01:05 AM, Martin [gz] wrote:
> You can reproduce this on Unix (provided you have the relevant locale
> installed) with:
>
> LANG=jp_JP.EUC-JP ./bzr --no-plugins plugins
>
> The Python UTF-8 and ISO-8859-* codecs don't have this issue.
>
Now that is pretty ugly. Having the codec change the behavior is pretty
harsh.
I wonder if encodings. iso_8859_ 1.StreamWriter does accept generators,
and hence we generally don't see this.
Anyway, adding list(generator) would be fine with me, I don't think it
needs to be a generator.
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
mos8ACgkQJdeBCY SNAANk2gCgkpXNr HqWBcr8C0z1F3pk 7jK5 tEMwjksZ0MM3LML 17
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk2
dMoAn1EDwKJ75IZ
=Lqr2
-----END PGP SIGNATURE-----