Skip to content

Issues when run with python 3.4.3 on Windows #3

@satya-das

Description

@satya-das

I used this tool to generate mock class of wxDC which is part of wxWidgets and I got some error. I used below command:
gmock.py dc.h -- -DWXDLLIMPEXP_CORE= -DWXWIN_COMPATIBILITY_2_8=0 -DWXDLLIMPEXP_FWD_CORE=
I got some error regarding encode and decode of strings, e.g.:
str(node.spelling, self.encode)
After fixing them I got below error:

File "C:\Tools\gmock.py\clang\cindex.py", line 95, in value
return super(c_char_p, self).value.decode("utf8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 0: invalid continuation byte

It will be great if you can take a look. I attached the file with which I ran this.
dc.txt
Github doesn't support .h file and so I have renamed it to .txt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions