[issue7330] PyUnicode_FromFormat segfault when using widths.

2009-11-15 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: There seems to be something wrong with the width handling code in PyUnicode_FromFormat; or perhaps I'm misusing it. To reproduce: replace the line return PyUnicode_FromFormat(range(%R, %R), r-start, r-stop); in range_repr in

[issue7330] PyUnicode_FromFormat segfault when using widths.

2009-11-15 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It looks like PyUnicode_FromFormatV is computing callcount incorrectly. It's looking for 'S', 'R', or 'A' immediately following '%', before the width. It seems to me it should be treating them the same as 's', although I'll admit to not having