John Machin írta:
> Looks like you need a GetShortPathNameW() but it's not implemented.
> Raise it as an issue on the pywin32 sourceforge bug register. Tell Mark
> I sent you :-)
> Another thought: try using ctypes.
>
Hi !
It seems to be I found a solution. A little tricky, but it is working:
John Machin írta:
> According to my reading of the source, the function you have called
> expects an 8-bit string.
>
> static PyObject *
> PyGetShortPathName(PyObject * self, PyObject * args)
> {
> char *path;
> if (!PyArg_ParseTuple(args, "s:GetShortPathName", &path))
>
> If
According to my reading of the source, the function you have called
expects an 8-bit string.
static PyObject *
PyGetShortPathName(PyObject * self, PyObject * args)
{
char *path;
if (!PyArg_ParseTuple(args, "s:GetShortPathName", &path))
If it is given Unicode, PyArg_ParseTu
Hi !
Yesterday I got a very interesting bug.
I don't understand, why I got it, because I thinking about this
function: that is safe.
But I was not.
The code:
import sys,os
UFN=u'%s\\xA\xff'%os.getcwd()
if os.path.exists(UFN):
os.remove(UFN)
f=open(UFN,'w')
f.write('%s\n'%('='*80))
f.close