Open GoogleCodeExporter opened 9 years ago
I ran into this today.
Attached is a patch that fixes the issue for Python 3.3+ only. It has to be
changed to work on older Python versions.
The problem is that using PyUnicode_AS_DATA (aliased to PyString_AsString)
returns UTF-32 encoding, which includes many null-bytes. Minuit the truncates
the name at the first null-byte. The fix is to give a UTF-8 encoded string to
minuit.
Original comment by ismo.toijala@gmail.com
on 29 Apr 2013 at 5:37
Attachments:
Ah. OK. Thank you! At least now I know why, though I have already set up an
interface to map user-given strings to single-character names within my code...
Original comment by lao...@gmail.com
on 30 Apr 2013 at 8:37
I also got bitten by this, using Python 3.2 though.
Here is a modified patch that should work with all versions of Python 3, using
ASCII (so no fancy symbols for parameter names).
Original comment by daniel.p...@gmail.com
on 16 May 2013 at 12:19
Attachments:
i'm having the same problem how to i install the patch?
Original comment by kpmooroo...@gmail.com
on 20 Nov 2013 at 2:28
Original issue reported on code.google.com by
lao...@gmail.com
on 4 Jan 2013 at 6:28