Clarify localeconv mutability

This commit is contained in:
Jeremy Soller
2022-12-16 20:10:01 -07:00
parent 0fab7f1864
commit 21efe2d3a1
+2 -1
View File
@@ -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,