diff --git a/src/header/locale/mod.rs b/src/header/locale/mod.rs index 442e6a6809807266d2ab74b277477440e3ab37b6..1f275ed4d7a2488e512a28d8c475e0c739873fe8 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,