Skip to content
Snippets Groups Projects
Commit 21efe2d3 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Clarify localeconv mutability

parent 0fab7f18
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,8 @@ pub struct lconv { ...@@ -32,7 +32,8 @@ pub struct lconv {
} }
unsafe impl Sync for 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 { static mut CURRENT_LOCALE: lconv = lconv {
currency_symbol: EMPTY_PTR, currency_symbol: EMPTY_PTR,
decimal_point: ".\0" as *const _ as *const c_char, decimal_point: ".\0" as *const _ as *const c_char,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment