add locale framework
[musl] / src / env / __init_tls.c
index 13cf2ee..efa0728 100644 (file)
@@ -16,6 +16,7 @@ int __init_tp(void *p)
        if (!r) libc.can_do_threads = 1;
        libc.has_thread_pointer = 1;
        td->tid = td->pid = __syscall(SYS_set_tid_address, &td->tid);
+       td->locale = &libc.global_locale;
        return 0;
 }