aports/main/nvme-cli/locale.patch

16 lines
356 B
Diff

diff --git a/nvme-print.c b/nvme-print.c
index 170e5c12..5b1f2e82 100644
--- a/nvme-print.c
+++ b/nvme-print.c
@@ -797,6 +797,10 @@ static bool is_fahrenheit_country(const char *country)
return false;
}
+#ifndef LC_MEASUREMENT
+#define LC_MEASUREMENT LC_ALL
+#endif
+
static bool is_temperature_fahrenheit(void)
{
const char *locale, *underscore;