Skip to content
Snippets Groups Projects
Commit 6ce141ba authored by Mikael Djurfeldt's avatar Mikael Djurfeldt
Browse files

Convert str to bytes

parent f0078451
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ def c_argc_argv (argv):
t_argv = c_char_p*argc
# construct argv for C
c_argv = t_argv (*tuple([c_char_p(arg) for arg in argv]))
c_argv = t_argv (*tuple([c_char_p(arg.encode ("utf-8")) for arg in argv]))
c_argc = c_int (argc)
return (c_argc, c_argv)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment