Author loewis
Recipients benjamin.peterson, eric.smith, ezio.melotti, loewis, mark.dickinson, skrah, vstinner
Date 2012-01-03.23:07:34
SpamBayes Score 7.68345e-05
Marked as misclassified No
Message-id <1325632055.33.0.0319034176152.issue13706@psf.upfronthosting.co.za>
In-reply-to
Content
Removing the if condition would be incorrect. The maximum char is computed at the beginning of the formatting. If, during formatting, need for a padding character is determined, the padding character must not be larger than the maximum char of the target string - which is 127 unless 'c' formatting is used.

One solution would be to determine whether the padding character is used in advance. Another solution would be to widen the string when the need for non-ASCII padding is detected.

I have no intention of fixing this issue myself; I don't mind if non-ASCII padding characters are not supported in 3.3.
History
Date User Action Args
2012-01-03 23:07:35loewissetrecipients: + loewis, mark.dickinson, vstinner, eric.smith, benjamin.peterson, ezio.melotti, skrah
2012-01-03 23:07:35loewissetmessageid: <1325632055.33.0.0319034176152.issue13706@psf.upfronthosting.co.za>
2012-01-03 23:07:34loewislinkissue13706 messages
2012-01-03 23:07:34loewiscreate