From 21efe2d3a1d65cad6f1e676f7c3f85357d65af2f Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Fri, 16 Dec 2022 20:10:01 -0700
Subject: [PATCH] Clarify localeconv mutability

---
 src/header/locale/mod.rs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/header/locale/mod.rs b/src/header/locale/mod.rs
index 442e6a680..1f275ed4d 100644
--- a/src/header/locale/mod.rs
+++ b/src/header/locale/mod.rs
@@ -32,7 +32,8 @@ pub struct lconv {
 }
 unsafe impl Sync for lconv {}
 
-//TODO: thread local?
+// Mutable because POSIX demands a mutable pointer, even though it warns
+// against mutating it
 static mut CURRENT_LOCALE: lconv = lconv {
     currency_symbol: EMPTY_PTR,
     decimal_point: ".\0" as *const _ as *const c_char,
-- 
GitLab