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
704d1695
Commit
704d1695
authored
May 20, 2014
by
Andrew Eikum
Committed by
Alexandre Julliard
May 20, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20/tests: Allow conversions to non-English codepages.
parent
92841b31
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
editor.c
dlls/riched20/tests/editor.c
+7
-2
No files found.
dlls/riched20/tests/editor.c
View file @
704d1695
...
...
@@ -5071,7 +5071,7 @@ static void test_EM_STREAMIN(void)
DWORD
phase
;
LRESULT
result
;
EDITSTREAM
es
;
char
buffer
[
1024
]
=
{
0
};
char
buffer
[
1024
]
=
{
0
}
,
tmp
[
16
]
;
const
char
*
streamText0
=
"{
\\
rtf1 TestSomeText}"
;
const
char
*
streamText0a
=
"{
\\
rtf1 TestSomeText
\\
par}"
;
...
...
@@ -5100,6 +5100,9 @@ static void test_EM_STREAMIN(void)
"This text just needs to be long enough to cause run to be split onto "
"two separate lines and make sure the null terminating character is "
"handled properly.
\0
"
;
const
WCHAR
UTF8Split_exp
[
4
]
=
{
0xd6
,
0xcf
,
0xcb
,
0
};
int
length4
=
strlen
(
streamText4
)
+
1
;
struct
StringWithLength
cookieForStream4
=
{
length4
,
...
...
@@ -5217,10 +5220,12 @@ static void test_EM_STREAMIN(void)
result
=
SendMessageA
(
hwndRichEdit
,
EM_STREAMIN
,
SF_TEXT
,
(
LPARAM
)
&
es
);
ok
(
result
==
8
,
"got %ld
\n
"
,
result
);
WideCharToMultiByte
(
CP_ACP
,
0
,
UTF8Split_exp
,
-
1
,
tmp
,
sizeof
(
tmp
),
NULL
,
NULL
);
result
=
SendMessageA
(
hwndRichEdit
,
WM_GETTEXT
,
1024
,
(
LPARAM
)
buffer
);
ok
(
result
==
3
,
"EM_STREAMIN: Test UTF8Split returned %ld
\n
"
,
result
);
result
=
memcmp
(
buffer
,
"
\xd6\xcf\xcb
"
,
3
);
result
=
memcmp
(
buffer
,
tmp
,
3
);
ok
(
result
==
0
,
"EM_STREAMIN: Test UTF8Split set wrong text: Result: %s
\n
"
,
buffer
);
ok
(
es
.
dwError
==
0
,
"EM_STREAMIN: Test UTF8Split set error %d, expected %d
\n
"
,
es
.
dwError
,
0
);
...
...
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