]> git.proxmox.com Git - libgit2.git/commitdiff
Fix compile error on Visual Studio
authorCha, Hojeong <ikadro@gmail.com>
Tue, 27 May 2014 14:32:38 +0000 (23:32 +0900)
committerCha, Hojeong <ikadro@gmail.com>
Tue, 27 May 2014 14:36:07 +0000 (23:36 +0900)
tests/diff/workdir.c
tests/repo/pathspec.c

index f82bb00e82ca2cf988c2b019a74d96dc025a3202..963be948187bdfb10b139c0c2d838ceb64052c8a 100644 (file)
@@ -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 */
index 334066b6701d382d47479fc0aff75c0949c4b2e6..5b86662bcfb4fb48c122b8654a00339214c65053 100644 (file)
@@ -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);