Skip to content

[Bug]: shrs can't work with country specific letters #499

@ghost

Description

Hello!

What went wrong?

When running shrs and accedently pressing a country specific letter like "Ø" , "ä/Ä" or "À" the program, in this case shrs example shell crashes.
Error message:

> ❯ shrs1
> 
>         __
>    ___ / /  _______
>   (_-</ _ \/ __(_-<
>  /___/_//_/_/ /___/
> a rusty POSIX shell | build v11152024.1752-dev
>  developer / > thread 'main' panicked at crates/shrs_utils/src/styled_buf.rs:101:20:                                                                                      posix 
>                                                                                     index out of bounds: the len is 1 but the index is 1
>                                                                                                                                         note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
> 
> 

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions