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

Always return C locale from setlocale

parent ab7e3da6
No related branches found
No related tags found
No related merge requests found
Pipeline #12929 failed
......@@ -60,10 +60,7 @@ pub unsafe extern "C" fn localeconv() -> *mut lconv {
}
#[no_mangle]
pub unsafe extern "C" fn setlocale(_option: c_int, val: *const c_char) -> *mut c_char {
if val.is_null() {
return C_LOCALE.as_mut_ptr() as *mut c_char;
}
pub unsafe extern "C" fn setlocale(_option: c_int, _val: *const c_char) -> *mut c_char {
// TODO actually implement
ptr::null_mut()
C_LOCALE.as_mut_ptr() as *mut 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