mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:40:59 +00:00
msvcrt: Use the correct strdup function for locale data.
This commit is contained in:
parent
f71c4113bc
commit
c5e88a3a69
|
@ -741,7 +741,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
|
|||
return NULL;
|
||||
}
|
||||
} else
|
||||
loc->locinfo->lc_category[MSVCRT_LC_COLLATE].locale = strdup("C");
|
||||
loc->locinfo->lc_category[MSVCRT_LC_COLLATE].locale = _strdup("C");
|
||||
|
||||
if(lcid[MSVCRT_LC_CTYPE] && (category==MSVCRT_LC_ALL || category==MSVCRT_LC_CTYPE)) {
|
||||
CPINFO cp;
|
||||
|
@ -783,7 +783,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
|
|||
loc->locinfo->lc_clike = 1;
|
||||
loc->locinfo->mb_cur_max = 1;
|
||||
loc->locinfo->pctype = MSVCRT__ctype+1;
|
||||
loc->locinfo->lc_category[MSVCRT_LC_CTYPE].locale = strdup("C");
|
||||
loc->locinfo->lc_category[MSVCRT_LC_CTYPE].locale = _strdup("C");
|
||||
}
|
||||
|
||||
for(i=0; i<256; i++)
|
||||
|
@ -988,7 +988,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
|
|||
loc->locinfo->lconv->p_sign_posn = 127;
|
||||
loc->locinfo->lconv->n_sign_posn = 127;
|
||||
|
||||
loc->locinfo->lc_category[MSVCRT_LC_MONETARY].locale = strdup("C");
|
||||
loc->locinfo->lc_category[MSVCRT_LC_MONETARY].locale = _strdup("C");
|
||||
}
|
||||
|
||||
if(lcid[MSVCRT_LC_NUMERIC] && (category==MSVCRT_LC_ALL || category==MSVCRT_LC_NUMERIC)) {
|
||||
|
@ -1055,7 +1055,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
|
|||
loc->locinfo->lconv->thousands_sep[0] = '\0';
|
||||
loc->locinfo->lconv->grouping[0] = '\0';
|
||||
|
||||
loc->locinfo->lc_category[MSVCRT_LC_NUMERIC].locale = strdup("C");
|
||||
loc->locinfo->lc_category[MSVCRT_LC_NUMERIC].locale = _strdup("C");
|
||||
}
|
||||
|
||||
if(lcid[MSVCRT_LC_TIME] && (category==MSVCRT_LC_ALL || category==MSVCRT_LC_TIME)) {
|
||||
|
@ -1064,7 +1064,7 @@ MSVCRT__locale_t MSVCRT__create_locale(int category, const char *locale)
|
|||
return NULL;
|
||||
}
|
||||
} else
|
||||
loc->locinfo->lc_category[MSVCRT_LC_TIME].locale = strdup("C");
|
||||
loc->locinfo->lc_category[MSVCRT_LC_TIME].locale = _strdup("C");
|
||||
|
||||
return loc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue