Fix error with unicode

This commit is contained in:
Romain Thomas 2017-04-04 17:22:16 +02:00
parent babf69240b
commit c6a3d198ad

View File

@ -43,7 +43,9 @@ void init_PE_AuthenticatedAttributes_class(py::module& m) {
"Return an hash of the signed attributes")
.def_property_readonly("program_name",
&AuthenticatedAttributes::program_name,
[] (const AuthenticatedAttributes& authenticated_attributes) {
return u16tou8(authenticated_attributes.program_name());
},
"Return the program description (if any)")
.def_property_readonly("more_info",