esp-rs / embuild

Build support for embedded Rust: Cargo integration with other embedded build ecosystems & tools, like PlatformIO, CMake and kconfig.
Apache License 2.0
139 stars 40 forks source link

Fix git error when LANGUAGE is defined #50

Closed lamperez closed 2 years ago

lamperez commented 2 years ago

LC_ALL gets overridden by LANGUAGE environment variable, breaking the parsing of git output. See gettext manual. Notice that LC_ALL=C is not overridden, but other locales are, including C.UTF-8.

The solution clears LANGUAGE. Alternatively, LC_ALL could be changed to LC_ALL=C. As a workaround, the same effect can be achieved by adding

[env]
LANGUAGE = { value = "", force = true }

to the configuration file (.cargo/config.toml).

N3xed commented 2 years ago

Now that is a strange quirk. Thanks!