Message122507
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. |
|
Date |
User |
Action |
Args |
2010-11-27 08:16:14 | ezio.melotti | set | recipients:
+ ezio.melotti, lemburg, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, eric.smith |
2010-11-27 08:16:14 | ezio.melotti | set | messageid: <1290845774.23.0.450802749835.issue10521@psf.upfronthosting.co.za> |
2010-11-27 08:16:12 | ezio.melotti | link | issue10521 messages |
2010-11-27 08:16:12 | ezio.melotti | create | |
|