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 ezio.melotti
Recipients amaury.forgeotdarc, belopolsky, eric.smith, ezio.melotti, lemburg, pitrou, terry.reedy
Date 2010-11-27.08:16:12
SpamBayes Score 9.39942e-06
Marked as misclassified No
Message-id <1290845774.23.0.450802749835.issue10521@psf.upfronthosting.co.za>
In-reply-to
Content
I agree that s.center(char, n).encode('utf-8') should be the same on both the builds -- even if their len() will be different -- for the following reasons:

1) the string will eventually be encoded, and if they the result is the same on both builds, it will look the same too;
2) trying to keep the same len() will generate different results and it won't work in case of odd width like 'foo'.center(surrogate_pair, 5) because you can't put half surrogate.
History
Date User Action Args
2010-11-27 08:16:14ezio.melottisetrecipients: + ezio.melotti, lemburg, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, eric.smith
2010-11-27 08:16:14ezio.melottisetmessageid: <1290845774.23.0.450802749835.issue10521@psf.upfronthosting.co.za>
2010-11-27 08:16:12ezio.melottilinkissue10521 messages
2010-11-27 08:16:12ezio.melotticreate