
I'd post a SF bug but it keeps insisting I log in, even after I have already. There's a bug, either in the code or docs for PyUnicode_FromEncodedObject. The docs read: "Unicode objects are passed back as-is with incremented refcount. Note: These cannot be decoded; passing a non-NULL value for encoding will result in a TypeError." 'tain't so; the following shows that the error is unconditional. if (obj == NULL) { PyErr_BadInternalCall(); return NULL; } #if 0 /* For b/w compatibility we also accept Unicode objects provided that no encodings is given and then redirect to PyObject_Unicode() which then applies the additional logic for Unicode subclasses. NOTE: This API should really only be used for object which represent *encoded* Unicode ! */ if (PyUnicode_Check(obj)) { if (encoding) { PyErr_SetString(PyExc_TypeError, "decoding Unicode is not supported"); return NULL; } return PyObject_Unicode(obj); } #else if (PyUnicode_Check(obj)) { PyErr_SetString(PyExc_TypeError, "decoding Unicode is not supported"); return NULL; } #endif -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams <dave@boost-consulting.com> writes:
I'd post a SF bug but it keeps insisting I log in, even after I have already.
It does not insist, it just explains that you have logged on. Unfortunately, there is no way to make this message disappear once you have logged on, so all of us see it all the time.
There's a bug, either in the code or docs for PyUnicode_FromEncodedObject. The docs read:
"Unicode objects are passed back as-is with incremented refcount. Note: These cannot be decoded; passing a non-NULL value for encoding will result in a TypeError."
Please do submit a bug report for that. Regards, Martin

martin@v.loewis.de (Martin v. Löwis) writes:
David Abrahams <dave@boost-consulting.com> writes:
I'd post a SF bug but it keeps insisting I log in, even after I have already.
It does not insist, it just explains that you have logged on. Unfortunately, there is no way to make this message disappear once you have logged on, so all of us see it all the time.
No, seriously. There is no "submit new" button/link for me. -- Dave Abrahams Boost Consulting www.boost-consulting.com

David Abrahams <dave@boost-consulting.com> writes:
It does not insist, it just explains that you have logged on. Unfortunately, there is no way to make this message disappear once you have logged on, so all of us see it all the time.
No, seriously. There is no "submit new" button/link for me.
What happens if you navigate to http://sourceforge.net/tracker/?group_id=5470&atid=105470 ? Do you have cookies enabled in your browser? Regards, Martin

martin@v.loewis.de (Martin v. Löwis) writes:
David Abrahams <dave@boost-consulting.com> writes:
It does not insist, it just explains that you have logged on. Unfortunately, there is no way to make this message disappear once you have logged on, so all of us see it all the time.
No, seriously. There is no "submit new" button/link for me.
What happens if you navigate to
http://sourceforge.net/tracker/?group_id=5470&atid=105470
? Do you have cookies enabled in your browser?
Yep. Submitted now. -- Dave Abrahams Boost Consulting www.boost-consulting.com
participants (2)
-
David Abrahams
-
martin@v.loewis.de