[Neal]
>>> Then later on we do PyString_GET_SIZE and PyString_AS_STRING. That doesn't
>>> work, does it? What am I missing?
[Tim]
>> The conceptual type of the object returned by PyUnicode_Encode().
[Neal]
> Phew, I sure am glad I was missing that. :-)
>
> I saw as the first line in PyUnicode_
On 7/5/06, Tim Peters <[EMAIL PROTECTED]> wrote:
>
> > Then later on we do PyString_GET_SIZE and PyString_AS_STRING. That doesn't
> > work, does it? What am I missing?
>
> The conceptual type of the object returned by PyUnicode_Encode().
Phew, I sure am glad I was missing that. :-)
I saw as th
[Neal Norwitz]
> In import.c starting around line 1210 (I removed a bunch of code that
> doesn't matter for the problem):
>
> if (PyUnicode_Check(v)) {
> copy = PyUnicode_Encode(PyUnicode_AS_UNICODE(v),
> PyUnicode_GET_SIZE(v),
In import.c starting around line 1210 (I removed a bunch of code that
doesn't matter for the problem):
if (PyUnicode_Check(v)) {
copy = PyUnicode_Encode(PyUnicode_AS_UNICODE(v),
PyUnicode_GET_SIZE(v),
Py_FileSystemDefaultEncod