Skip to content

Incorrect byte count for message box #119

Description

@naattxx

In the Debugger message box, the function buffer.insert_at_cursor expect the length of the message in bytes, but message.length give the length in letters.
this causes non latin text to end early and silently throws:
Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion 'g_utf8_validate (text, len, NULL)' failed

Buffer.byteLength(str, "utf8") should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions