dummy implementation of set_thread_area
[musl] / src / locale / localeconv.c
1 #include <locale.h>
2 #include <string.h>
3 #include <stdlib.h>
4
5 struct lconv *localeconv(void)
6 {
7         static struct lconv *posix_lconv;
8         if (posix_lconv) return posix_lconv;
9         posix_lconv = malloc(sizeof *posix_lconv);
10         memset(posix_lconv, -1, sizeof *posix_lconv);
11         posix_lconv->decimal_point = ".";
12         posix_lconv->thousands_sep = "";
13         posix_lconv->grouping = "\xff";
14         posix_lconv->int_curr_symbol = ""; //"\xc2\xa4";
15         posix_lconv->currency_symbol = "";
16         posix_lconv->mon_decimal_point = "";
17         posix_lconv->mon_thousands_sep = "";
18         posix_lconv->mon_grouping = "\xff";
19         posix_lconv->positive_sign = ""; // "+";
20         posix_lconv->negative_sign = ""; // "-";
21         return posix_lconv;
22 }