44 static const char lc_all[] =
"LC_COLLATE=C;LC_CTYPE=C;"
45 "LC_MONETARY=Greek_Greece.1253;LC_NUMERIC=Polish_Poland.1250;LC_TIME=C";
62 win_skip(
"System with limited locales\n");
115 ok(!
strcmp(
ret,
"Chinese (Simplified)_People's Republic of China.936")
116 || !
strcmp(
ret,
"Chinese (Simplified)_China.936")
122 ok(!
strcmp(
ret,
"Chinese (Simplified)_People's Republic of China.936")
123 || !
strcmp(
ret,
"Chinese (Simplified)_China.936")
130 ok(!
strcmp(
ret,
"Chinese (Traditional)_Taiwan.950")
136 ok(!
strcmp(
ret,
"Chinese (Simplified)_People's Republic of China.936")
137 || !
strcmp(
ret,
"Chinese (Simplified)_China.936")
138 ||
broken(!
strcmp(
ret,
"Chinese_People's Republic of China.936")),
"ret = %s\n",
ret);
143 ok(!
strcmp(
ret,
"Chinese (Traditional)_Taiwan.950")
150 trace(
"Chinese_China.936=%s\n",
ret);
151 ok(!
strcmp(
ret,
"Chinese (Simplified)_People's Republic of China.936")
152 || !
strcmp(
ret,
"Chinese (Simplified)_China.936")
153 ||
broken(!
strcmp(
ret,
"Chinese_People's Republic of China.936")),
"ret = %s\n",
ret);
160 || !
strcmp(
ret,
"Czech_Czechia.1250"),
"ret = %s\n",
ret);
166 || !
strcmp(
ret,
"Czech_Czechia.1250"),
"ret = %s\n",
ret);
230 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
241 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
246 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
275 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
280 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
454 || !
strcmp(
ret,
"Norwegian (Nynorsk)_Norway.1252")
462 ok(!
strcmp(
ret,
"Norwegian (Bokm\xe5l)_Norway.1252")
463 || !
strcmp(
ret,
"Norwegian Bokm\xe5l_Norway.1252")
464 || !
strcmp(
ret,
"Norwegian (Bokmal)_Norway.1252")
471 ok(!
strcmp(
ret,
"Norwegian (Bokm\xe5l)_Norway.1252")
472 || !
strcmp(
ret,
"Norwegian Bokm\xe5l_Norway.1252")
473 || !
strcmp(
ret,
"Norwegian (Bokmal)_Norway.1252")
481 || !
strcmp(
ret,
"Norwegian (Nynorsk)_Norway.1252")
553 ok(!
strcmp(
ret,
"Spanish - Modern Sort_Spain.1252")
554 || !
strcmp(
ret,
"Spanish_Spain.1252"),
"ret = %s\n",
ret);
590 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
595 ok(!
strcmp(
ret,
"English_United States.1252"),
"ret = %s\n",
ret);
624 static const wchar_t str0[] = {
'0',
'\0' };
625 static const wchar_t strA[] = {
'A',
'\0' };
626 static const wchar_t str_space[] = {
' ',
'\0' };
627 static const wchar_t str_null[] = {
'\0',
'\0' };
628 static const wchar_t str_rand[] = { 1234,
'\0' };
630 const wchar_t *
str[] = { str0,
strA, str_space, str_null, str_rand };
636 if(!p__crtGetStringTypeW) {
637 win_skip(
"Skipping __crtGetStringTypeW tests\n");
642 win_skip(
"Too old version of msvcrt.dll\n");
647 ret_crt = p__crtGetStringTypeW(0,
CT_CTYPE1,
str[
i], 1, &out_crt);
649 ok(
ret == ret_crt,
"%d) ret_crt = %d\n",
i, (
int)ret_crt);
650 ok(
out == out_crt,
"%d) out_crt = %x, expected %x\n",
i, (
int)out_crt, (
int)
out);
652 ret_crt = p__crtGetStringTypeW(0,
CT_CTYPE2,
str[
i], 1, &out_crt);
654 ok(
ret == ret_crt,
"%d) ret_crt = %d\n",
i, (
int)ret_crt);
655 ok(
out == out_crt,
"%d) out_crt = %x, expected %x\n",
i, (
int)out_crt, (
int)
out);
657 ret_crt = p__crtGetStringTypeW(0,
CT_CTYPE3,
str[
i], 1, &out_crt);
659 ok(
ret == ret_crt,
"%d) ret_crt = %d\n",
i, (
int)ret_crt);
660 ok(
out == out_crt,
"%d) out_crt = %x, expected %x\n",
i, (
int)out_crt, (
int)
out);
663 ret = p__crtGetStringTypeW(0, 3,
str[0], 1, &
out);
664 ok(!
ret,
"ret == TRUE\n");
669 static const DWORD time_data[] = {
706 if(
sizeof(
void*) == 8)
714 time_data[
i],
buf,
sizeof(
buf));
728 time_data[
i],
buf,
sizeof(
buf));
744 if(!p___mb_cur_max_func)
745 win_skip(
"Skipping ___mb_cur_max_func tests\n");
747 mb_cur_max = p___mb_cur_max_func();
748 ok(mb_cur_max == 1,
"mb_cur_max = %d, expected 1\n", mb_cur_max);
752 win_skip(
"Skipping test with chinese locale\n");
754 mb_cur_max = p___mb_cur_max_func();
755 ok(mb_cur_max == 2,
"mb_cur_max = %d, expected 2\n", mb_cur_max);
762 skip(
"Skipping __p___mb_cur_max tests\n");
765 ok(mb_cur_max == 1,
"mb_cur_max = %d, expected 1\n", mb_cur_max);
769 win_skip(
"Skipping test with chinese locale\n");
772 ok(mb_cur_max == 2,
"mb_cur_max = %d, expected 2\n", mb_cur_max);
int strcmp(const char *String1, const char *String2)
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
#define GetProcAddress(x, y)
HMODULE WINAPI DECLSPEC_HOTPATCH GetModuleHandleA(LPCSTR lpModuleName)
INT WINAPI GetLocaleInfoA(LCID lcid, LCTYPE lctype, LPSTR buffer, INT len)
BOOL WINAPI GetStringTypeW(DWORD type, LPCWSTR src, INT count, LPWORD chartype)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static PEXPLICIT_ACCESSW *static HMODULE hmod
static void test__Gettnames(void)
static void test_crtGetStringTypeW(void)
void *__cdecl _Gettnames(void)
static const wchar_t WORD *static size_t
static void test_setlocale(void)
static int *__cdecl * p__p___mb_cur_max(void)
static void test___mb_cur_max_func(void)
#define MAKELCID(lgid, srtid)
#define SUBLANG_ENGLISH_US
DWORD WINAPI GetLastError(void)
#define LOCALE_SABBREVMONTHNAME10
#define LOCALE_SMONTHNAME12
#define LOCALE_IDEFAULTCODEPAGE
#define LOCALE_SMONTHNAME5
#define LOCALE_SABBREVMONTHNAME9
#define LOCALE_SABBREVMONTHNAME11
#define LOCALE_SABBREVDAYNAME5
#define LOCALE_SABBREVDAYNAME2
#define LOCALE_SABBREVMONTHNAME2
#define LOCALE_SMONTHNAME3
#define LOCALE_SMONTHNAME11
#define LOCALE_SMONTHNAME8
#define LOCALE_SMONTHNAME4
#define LOCALE_SMONTHNAME7
#define LOCALE_SSHORTDATE
#define LOCALE_SABBREVMONTHNAME4
#define LOCALE_SABBREVDAYNAME4
#define LOCALE_SMONTHNAME1
#define LOCALE_SABBREVMONTHNAME3
#define LOCALE_SABBREVMONTHNAME1
#define LOCALE_IDEFAULTANSICODEPAGE
#define LOCALE_SABBREVDAYNAME6
#define LOCALE_SMONTHNAME2
#define LOCALE_STIMEFORMAT
#define LOCALE_SABBREVDAYNAME1
#define LOCALE_SABBREVMONTHNAME6
#define LOCALE_SMONTHNAME6
#define LOCALE_SABBREVDAYNAME3
#define LOCALE_SABBREVMONTHNAME5
#define LOCALE_SABBREVMONTHNAME7
#define LOCALE_SABBREVMONTHNAME8
#define LOCALE_SMONTHNAME10
#define LOCALE_SMONTHNAME9
#define LOCALE_SABBREVMONTHNAME12
#define LOCALE_SABBREVDAYNAME7