mirror of https://github.com/Gnucash/gnucash
scm_c_string_length() returns the wrong answer when the C string is UTF8: It returns the number of codepoints because the SCM string is in UTF32, but we need the number of bytes for gtk_text_buffer_set_text. Fortunately scm_to_utf8_string returns a null-terminated string so we can just tell gtk_text_buffer_set_text to figure it out on its own. Guile doesn't use g_malloc so don't use g_free, and gpointer* is a void** so change the cast to void* for free.pull/533/head
parent
22f22b0a28
commit
c9d001d550
Loading…
Reference in new issue