How to use .encode("UTF-8") for a list of strings to C?

8 views
Skip to first unread message

Hiroaki Nakamura

unread,
Jul 6, 2015, 2:43:42 AM7/6/15
to cython...@googlegroups.com
Hi all,

I tried the following example code, but I got a "Segmentation fault" error.
https://github.com/hnakamur/cygroonga/blob/7d711e2ce2df9cb48e239db062e62694b1cc3af0/example_index.py#L20-L23

My implemetation for this code is at:
https://github.com/hnakamur/cygroonga/blob/7d711e2ce2df9cb48e239db062e62694b1cc3af0/cygroonga.pyx#L608-L618

I have a list of Python strings and I need to convert them to byte strings and pass them to C.
Could you tell me how to do this please?

Thanks!

Hiroaki Nakamura

unread,
Jul 6, 2015, 12:20:01 PM7/6/15
to cython...@googlegroups.com
Hi all,

It turns out that this is my bug and it has nothing to do with cython.
I'm sorry to bother you.
Reply all
Reply to author
Forward
0 new messages