update for HEAD-2003091401
[reactos.git] / lib / msvcrt / locale / locale.c
index 971c706..aa6d5b4 100644 (file)
@@ -9,12 +9,17 @@ const char *_current_locale;
 
 int parse_locale(char *locale, char *lang, char *country, char *code_page);
 
+/*
+ * @unimplemented
+ */
 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);    
+       if (NULL != locale) {
+               parse_locale((char *)locale,lang,country,code_page);
+       }
 
        //printf("%s %s %s %s\n",locale,lang,country,code_page);
 
@@ -135,6 +140,9 @@ struct lconv _lconv = {
 127      // n_sign_posn;
 };
 
+/*
+ * @implemented
+ */
 struct lconv *localeconv(void)
 {
   return (struct lconv *) &_lconv;