Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
2cb51d9f
Commit
2cb51d9f
authored
Dec 18, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Added more setlocale tests.
parent
a406d538
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
locale.c
dlls/msvcrt/tests/locale.c
+21
-0
No files found.
dlls/msvcrt/tests/locale.c
View file @
2cb51d9f
...
...
@@ -575,6 +575,27 @@ static void test_setlocale(void)
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
ok
(
!
strcmp
(
ret
,
"English_United States.1252"
),
"ret = %s
\n
"
,
ret
);
ret
=
setlocale
(
LC_ALL
,
"English_United States.ACP"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
{
strcpy
(
buf
,
"English_United States."
);
GetLocaleInfoA
(
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
),
LOCALE_IDEFAULTANSICODEPAGE
,
buf
+
strlen
(
buf
),
80
);
ok
(
!
strcmp
(
ret
,
buf
),
"ret = %s, expected %s
\n
"
,
ret
,
buf
);
}
ret
=
setlocale
(
LC_ALL
,
"English_United States.OCP"
);
ok
(
ret
!=
NULL
||
broken
(
ret
==
NULL
),
"ret == NULL
\n
"
);
if
(
ret
)
{
strcpy
(
buf
,
"English_United States."
);
GetLocaleInfoA
(
MAKELCID
(
MAKELANGID
(
LANG_ENGLISH
,
SUBLANG_ENGLISH_US
),
SORT_DEFAULT
),
LOCALE_IDEFAULTCODEPAGE
,
buf
+
strlen
(
buf
),
80
);
ok
(
!
strcmp
(
ret
,
buf
),
"ret = %s, expected %s
\n
"
,
ret
,
buf
);
}
ret
=
setlocale
(
LC_ALL
,
"English_United States.UTF8"
);
ok
(
ret
==
NULL
,
"ret != NULL
\n
"
);
}
static
void
test_crtGetStringTypeW
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment