Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
957f52b4
Commit
957f52b4
authored
Jun 17, 2009
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jun 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mlang/tests: Some old IE versions truncate one character too short.
parent
da1601e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
mlang.c
dlls/mlang/tests/mlang.c
+21
-3
No files found.
dlls/mlang/tests/mlang.c
View file @
957f52b4
...
@@ -121,7 +121,7 @@ static const WCHAR de_engb[] = {'E','n','g','l','i','s','c','h',' ',
...
@@ -121,7 +121,7 @@ static const WCHAR de_engb[] = {'E','n','g','l','i','s','c','h',' ',
'('
,
'G'
,
'r'
,
'o'
,
0xDF
,
'b'
,
'r'
,
'i'
,
't'
,
'a'
,
'n'
,
'n'
,
'i'
,
'e'
,
'n'
,
')'
,
0
};
'('
,
'G'
,
'r'
,
'o'
,
0xDF
,
'b'
,
'r'
,
'i'
,
't'
,
'a'
,
'n'
,
'n'
,
'i'
,
'e'
,
'n'
,
')'
,
0
};
static
const
WCHAR
de_engb2
[]
=
{
'E'
,
'n'
,
'g'
,
'l'
,
'i'
,
's'
,
'c'
,
'h'
,
' '
,
static
const
WCHAR
de_engb2
[]
=
{
'E'
,
'n'
,
'g'
,
'l'
,
'i'
,
's'
,
'c'
,
'h'
,
' '
,
'('
,
'V'
,
'e'
,
'r'
,
'e'
,
'i'
,
'n'
,
'i'
,
'g'
,
't'
,
'e'
,
's'
,
' '
,
'('
,
'V'
,
'e'
,
'r'
,
'e'
,
'i'
,
'n'
,
'i'
,
'g'
,
't'
,
'e'
,
's'
,
' '
,
'K'
,
0xF6
,
'n'
,
'i'
,
'g'
,
'r'
,
'e'
,
'i'
,
0
};
'K'
,
0xF6
,
'n'
,
'i'
,
'g'
,
'r'
,
'e'
,
'i'
,
'c'
,
0
};
static
const
WCHAR
de_enus
[]
=
{
'E'
,
'n'
,
'g'
,
'l'
,
'i'
,
's'
,
'c'
,
'h'
,
' '
,
static
const
WCHAR
de_enus
[]
=
{
'E'
,
'n'
,
'g'
,
'l'
,
'i'
,
's'
,
'c'
,
'h'
,
' '
,
'('
,
'U'
,
'S'
,
'A'
,
')'
,
0
};
'('
,
'U'
,
'S'
,
'A'
,
')'
,
0
};
static
const
WCHAR
de_de
[]
=
{
'D'
,
'e'
,
'u'
,
't'
,
's'
,
'c'
,
'h'
,
' '
,
static
const
WCHAR
de_de
[]
=
{
'D'
,
'e'
,
'u'
,
't'
,
's'
,
'c'
,
'h'
,
' '
,
...
@@ -266,6 +266,17 @@ static int mylstrcmpW(const WCHAR* str1, const WCHAR* str2)
...
@@ -266,6 +266,17 @@ static int mylstrcmpW(const WCHAR* str1, const WCHAR* str2)
return
*
str1
-*
str2
;
return
*
str1
-*
str2
;
}
}
/* lstrcpyW is not supported on Win95 */
static
void
mylstrcpyW
(
WCHAR
*
str1
,
const
WCHAR
*
str2
)
{
while
(
str2
&&
*
str2
)
{
*
str1
=
*
str2
;
str1
++
;
str2
++
;
}
*
str1
=
'\0'
;
}
#define DEBUGSTR_W_MAXLEN 64
#define DEBUGSTR_W_MAXLEN 64
static
CHAR
*
debugstr_w
(
const
WCHAR
*
strW
)
static
CHAR
*
debugstr_w
(
const
WCHAR
*
strW
)
...
@@ -1238,6 +1249,7 @@ static void test_LcidToRfc1766(void)
...
@@ -1238,6 +1249,7 @@ static void test_LcidToRfc1766(void)
static
void
test_GetRfc1766Info
(
IMultiLanguage2
*
iML2
)
static
void
test_GetRfc1766Info
(
IMultiLanguage2
*
iML2
)
{
{
WCHAR
short_broken_name
[
MAX_LOCALE_NAME
];
CHAR
rfc1766A
[
MAX_RFC1766_NAME
+
1
];
CHAR
rfc1766A
[
MAX_RFC1766_NAME
+
1
];
BYTE
buffer
[
sizeof
(
RFC1766INFO
)
+
4
];
BYTE
buffer
[
sizeof
(
RFC1766INFO
)
+
4
];
PRFC1766INFO
prfc
=
(
RFC1766INFO
*
)
buffer
;
PRFC1766INFO
prfc
=
(
RFC1766INFO
*
)
buffer
;
...
@@ -1258,16 +1270,22 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2)
...
@@ -1258,16 +1270,22 @@ static void test_GetRfc1766Info(IMultiLanguage2 *iML2)
ok
(
!
lstrcmpA
(
rfc1766A
,
info_table
[
i
].
rfc1766
),
ok
(
!
lstrcmpA
(
rfc1766A
,
info_table
[
i
].
rfc1766
),
"#%02d: got '%s' (expected '%s')
\n
"
,
i
,
rfc1766A
,
info_table
[
i
].
rfc1766
);
"#%02d: got '%s' (expected '%s')
\n
"
,
i
,
rfc1766A
,
info_table
[
i
].
rfc1766
);
/* Some IE versions truncate an oversized name one character to short */
mylstrcpyW
(
short_broken_name
,
info_table
[
i
].
broken_name
);
short_broken_name
[
MAX_LOCALE_NAME
-
2
]
=
'\0'
;
if
(
info_table
[
i
].
todo
&
TODO_NAME
)
{
if
(
info_table
[
i
].
todo
&
TODO_NAME
)
{
todo_wine
todo_wine
ok
(
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
ok
(
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
)),
/* IE < 6.0 */
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
)),
"#%02d: got %s (expected %s)
\n
"
,
i
,
"#%02d: got %s (expected %s)
\n
"
,
i
,
debugstr_w
(
prfc
->
wszLocaleName
),
debugstr_w
(
info_table
[
i
].
localename
));
debugstr_w
(
prfc
->
wszLocaleName
),
debugstr_w
(
info_table
[
i
].
localename
));
}
}
else
else
ok
(
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
ok
(
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
localename
))
||
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
)),
/* IE < 6.0 */
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
info_table
[
i
].
broken_name
))
||
/* IE < 6.0 */
broken
(
!
mylstrcmpW
(
prfc
->
wszLocaleName
,
short_broken_name
)),
"#%02d: got %s (expected %s)
\n
"
,
i
,
"#%02d: got %s (expected %s)
\n
"
,
i
,
debugstr_w
(
prfc
->
wszLocaleName
),
debugstr_w
(
info_table
[
i
].
localename
));
debugstr_w
(
prfc
->
wszLocaleName
),
debugstr_w
(
info_table
[
i
].
localename
));
...
...
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