diff --git a/reactos/lib/crtdll/locale/.cvsignore b/reactos/lib/crtdll/locale/.cvsignore deleted file mode 100644 index bd0e3dfd3ef..00000000000 --- a/reactos/lib/crtdll/locale/.cvsignore +++ /dev/null @@ -1,3 +0,0 @@ -*.d -*.o -*.sym diff --git a/reactos/lib/crtdll/locale/locale.c b/reactos/lib/crtdll/locale/locale.c deleted file mode 100644 index 7eb5c676571..00000000000 --- a/reactos/lib/crtdll/locale/locale.c +++ /dev/null @@ -1,147 +0,0 @@ -#include -#include -#include -#include - - -int _current_category; /* used by setlocale */ -const char *_current_locale; - -int parse_locale(char *locale, char *lang, char *country, char *code_page); - -/* - * @implemented - */ -char *setlocale(int category, const char *locale) -{ - char lang[100]; - char country[100]; - char code_page[100]; - parse_locale((char *)locale,lang,country,code_page); - - //printf("%s %s %s %s\n",locale,lang,country,code_page); - - - switch ( category ) - { - case LC_COLLATE: - break; - case LC_CTYPE: - break; - case LC_MONETARY: - break; - case LC_NUMERIC: - break; - case LC_TIME: - break; - case LC_ALL: - break; - default: - break; - } - - return "C"; - -} - -/* - -locale "lang[_country[.code_page]]" - | ".code_page" - | "" - | NULL - -*/ -int parse_locale(char *locale, char *lang, char *country, char *code_page) -{ - while ( *locale != 0 && *locale != '.' && *locale != '_' ) - { - *lang = *locale; - lang++; - locale++; - } - *lang = 0; - if ( *locale == '_' ) { - locale++; - while ( *locale != 0 && *locale != '.' ) - { - *country = *locale; - country++; - locale++; - } - } - *country = 0; - - - if ( *locale == '.' ) { - locale++; - while ( *locale != 0 && *locale != '.' ) - { - *code_page = *locale; - code_page++; - locale++; - } - } - - *code_page = 0; - return 0; -} - -const struct map_lcid2str { - short langid; - const char *langname; - const char *country; -} languages[]={ - {0x0409,"English", "United States"}, - {0x0809,"English", "United Kingdom"}, - {0x0000,"Unknown", "Unknown"} - -}; - -const struct map_cntr { - const char *abrev; - const char *country; -} abrev[] = { - {"britain", "united kingdom"}, - {"england", "united kingdom"}, - {"gbr", "united kingdom"}, - {"great britain", "united kingdom"}, - {"uk", "united kingdom"}, - {"united kingdom", "united kingdom"}, - {"united-kingdom", "united kingdom"}, - {"america", "united states" }, - {"united states", "united states"}, - {"united-states", "united states"}, - {"us", "united states"}, - {"usa" "united states"} -}; - - -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 -127, // int_frac_digits -127, // frac_digits -127, // p_cs_precedes -127, // p_sep_by_space -127, // n_cs_precedes -127, // n_sep_by_space -127, // p_sign_posn; -127 // n_sign_posn; -}; - -/* - * @implemented - */ -struct lconv *localeconv(void) -{ - return (struct lconv *) &_lconv; -} diff --git a/reactos/lib/crtdll/makefile b/reactos/lib/crtdll/makefile index 1c17a233326..a0d6716316f 100644 --- a/reactos/lib/crtdll/makefile +++ b/reactos/lib/crtdll/makefile @@ -1,4 +1,4 @@ -# $Id: makefile,v 1.59 2003/07/16 22:09:07 royce Exp $ +# $Id: makefile,v 1.60 2003/07/24 15:59:46 gvg Exp $ PATH_TO_TOP = ../.. @@ -29,7 +29,6 @@ TARGET_CLEAN = \ float/*.o \ io/*.o \ libc/*.o \ - locale/*.o \ malloc/*.o \ math/*.o \ mbstring/*.o \