diff --git a/reactos/lib/crtdll/locale/locale.c b/reactos/lib/crtdll/locale/locale.c index c537b7e1a0a..b5f7a7d6c4c 100644 --- a/reactos/lib/crtdll/locale/locale.c +++ b/reactos/lib/crtdll/locale/locale.c @@ -115,7 +115,26 @@ const struct map_cntr { }; -struct lconv _lconv; +struct lconv _lconv = { + '.', // decimal_point + ',', // thousands_sep + "", // grouping; + "DOL", // int_curr_symbol + "$", // currency_symbol + '.', // mon_decimal_point + ',', // mon_thousands_sep + "", // mon_grouping; + '+', // positive_sign + '-', // negative_sign + 2, // int_frac_digits + 2, // frac_digits + 1, // p_cs_precedes + 1, // p_sep_by_space + 1, // n_cs_precedes + 1, // n_sep_by_space + 1, // p_sign_posn; + 1 // n_sign_posn; + }; struct lconv *localeconv(void) { diff --git a/reactos/lib/crtdll/makefile b/reactos/lib/crtdll/makefile index 541be93995b..61485687f97 100644 --- a/reactos/lib/crtdll/makefile +++ b/reactos/lib/crtdll/makefile @@ -27,7 +27,7 @@ DIRECT_OBJECTS = direct/chdir.o direct/chdrive.o direct/getcwd.o direct/getdrive EXCEPT_OBJECTS = except/unwind.o except/abnorter.o except/exhand2.o except/matherr.o -LOCALE_OBJECTS = # locale/locale.o +LOCALE_OBJECTS = locale/locale.o MALLOC_OBJECTS = malloc/expand.o malloc/heap.o diff --git a/reactos/lib/crtdll/process/_system.c b/reactos/lib/crtdll/process/_system.c index 98bd05b39a0..9f4dbc1c6fe 100644 --- a/reactos/lib/crtdll/process/_system.c +++ b/reactos/lib/crtdll/process/_system.c @@ -28,7 +28,7 @@ int system(const char *command) // system should return 0 if command is null and the shell is found if ( command == NULL ) { - if ( szComspec == NULL ) + if ( szComSpec == NULL ) return 0; else return -1;