ovis-hpc / sos

sos pre-release stable.
https://github.com/ovis-hpc/sos/wiki
Other
4 stars 7 forks source link

Fix Cython Sos:get_CHAR_ARRAY() #24

Closed narategithub closed 4 years ago

narategithub commented 4 years ago

str(char[]) gets translated to str(bytes) and results in "b'CONTENT'" (a str with leading "b" character and "'" single quotes surrounding the content). The bytes to str conversion should be done using bytes.decode().

NOTE: char[] is wrapped as bytes by Cython.