Skip to content

[BUG] program crashing on particular strings #821

@AnarchistHoneybun

Description

@AnarchistHoneybun

Describe the bug
i found this out while using ncspot, here's the original issue raised there. Basically, for particular strings (containing hindi letters, for example) the program just crashes, with the panic message mentioning cursive_core

To Reproduce
this program reproduces the error:

use cursive::views::{Dialog, TextView};

fn main() {
    // Creates the cursive root - required for every application.
    let mut siv = cursive::default();

    // Creates a dialog with a single "Quit" button
    siv.add_layer(
        Dialog::around(TextView::new("मराठी प्रार्थना - Shubham Karoti Kalyanam "))
            .title("Cursive")
            .button("Quit", |s| s.quit()),
    );

    // Starts the event loop.
    siv.run();
}

Expected behavior
not to crash for any particular string

Environment

  • arch linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions