Skip to content

Instantly share code, notes, and snippets.

@durka
Created December 12, 2017 21:28
Show Gist options
  • Save durka/aaf8797e9e741f241aad91171a7595a4 to your computer and use it in GitHub Desktop.
Save durka/aaf8797e9e741f241aad91171a7595a4 to your computer and use it in GitHub Desktop.
$ LOG_LEVEL=$(python -c "print chr(255)") cargo script xxx.rs
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotUnicode("\xff")
'LOG_LEVEL' not UTF-8 compatible!', src/libcore/result.rs:906:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment