Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
ab882e21
Commit
ab882e21
authored
May 28, 2014
by
Vicent Marti
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2385 from karipe/development
Fix compile error on Visual Studio
parents
63e8c3fd
3ac1ff42
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
tests/diff/workdir.c
+2
-2
tests/repo/pathspec.c
+1
-1
No files found.
tests/diff/workdir.c
View file @
ab882e21
...
...
@@ -1610,8 +1610,8 @@ void test_diff_workdir__binary_detection(void)
int
i
;
git_buf
data
[
10
]
=
{
{
"1234567890"
,
0
,
0
},
/* 0 - all ascii text control */
{
"
Åü†HøπΩ
"
,
0
,
0
},
/* 1 - UTF-8 multibyte text */
{
"
\xEF\xBB\xBF
Ü⤒ƒ8£€
"
,
0
,
0
},
/* 2 - UTF-8 with BOM */
{
"
\xC3\x85\xC3\xBC\xE2\x80\xA0\x48\xC3\xB8\xCF\x80\xCE\xA9
"
,
0
,
0
},
/* 1 - UTF-8 multibyte text */
{
"
\xEF\xBB\xBF
\xC3\x9C\xE2\xA4\x92\xC6\x92\x38\xC2\xA3\xE2\x82\xAC
"
,
0
,
0
},
/* 2 - UTF-8 with BOM */
{
STR999Z
,
0
,
1000
},
/* 3 - ASCII with NUL at 1000 */
{
STR3999Z
,
0
,
4000
},
/* 4 - ASCII with NUL at 4000 */
{
STR4000
STR3999Z
"x"
,
0
,
8001
},
/* 5 - ASCII with NUL at 8000 */
...
...
tests/repo/pathspec.c
View file @
ab882e21
...
...
@@ -167,7 +167,7 @@ void test_repo_pathspec__workdir4(void)
cl_git_pass
(
git_pathspec_match_workdir
(
&
m
,
g_repo
,
0
,
ps
));
cl_assert_equal_sz
(
13
,
git_pathspec_match_list_entrycount
(
m
));
cl_assert_equal_s
(
"
这
"
,
git_pathspec_match_list_entry
(
m
,
12
));
cl_assert_equal_s
(
"
\xE8\xBF\x99
"
,
git_pathspec_match_list_entry
(
m
,
12
));
git_pathspec_match_list_free
(
m
);
git_pathspec_free
(
ps
);
...
...
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