ardaku / whoami

Rust crate to get the current user and environment.
Apache License 2.0
195 stars 31 forks source link

Whoami Languages From Within Toolbox #51

Closed AldaronLau closed 1 year ago

AldaronLau commented 1 year ago

Describe the bug Running the toolbox command and calling lang() returns ["C", "C"], this is incorrect for a couple reasons:

  1. Should be able to find that it's English (or other language)
  2. Shouldn't return duplicate entries

To Reproduce Steps to reproduce the behavior:

  1. Launch toolbox
  2. Run whoami-demo example

Expected behavior Should print out non-duplicated language strings.

Desktop (please complete the following information):

AldaronLau commented 1 year ago

Turns out toolbox does not expose the language of the underlying system, so that part is not exactly a bug (should fall back to English, though, probably).