Comment 4 for bug 754082

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 754082] Re: (2.4b1)`bzr plugins` fails with TypeError in writelines

-----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-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2mos8ACgkQJdeBCYSNAANk2gCgkpXNrHqWBcr8C0z1F3pk7jK5
dMoAn1EDwKJ75IZtEMwjksZ0MM3LML17
=Lqr2
-----END PGP SIGNATURE-----