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 mark.dickinson
Recipients dzaamek, ezio.melotti, mark.dickinson, vstinner
Date 2014-03-24.19:16:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1395688585.75.0.148821738135.issue21051@psf.upfronthosting.co.za>
In-reply-to
Content
Indeed: the \u010d is being interpreted by your *C compiler* as a multibyte character, and the individual bytes of that multibyte character end up in the string that you actually pass to Python.  I suspect that the actual bytes you get depend on your locale.  Here I get (signed) bytes -60 and -115.  (See e.g. "translation phase 7" in C99 6.4.5.)

As Victor says, you need to escape the backslash in the C code.
History
Date User Action Args
2014-03-24 19:16:25mark.dickinsonsetrecipients: + mark.dickinson, vstinner, ezio.melotti, dzaamek
2014-03-24 19:16:25mark.dickinsonsetmessageid: <1395688585.75.0.148821738135.issue21051@psf.upfronthosting.co.za>
2014-03-24 19:16:25mark.dickinsonlinkissue21051 messages
2014-03-24 19:16:25mark.dickinsoncreate