Skip to content

Expanding a parameter with a non-ASCII name panics #529

@magicant

Description

@magicant

Reproduced with commit ae888a0.

$ echo ${あ}

thread 'main' panicked at /home/magicant/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/annotate-snippets-0.11.5/src/renderer/display_list.rs:1213:45:
byte index 8 is not a char boundary; it is inside '' (bytes 7..10) of `echo ${あ}
`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions