(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:test_description) op: assign_op.Equal rhs: {(SQ <'Clone repositories with non ASCII paths'>)} spids: [4] ) ] ) (C {<.>} {<'./lib-git-p4.sh'>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:UTF8_ESCAPED) op: assign_op.Equal rhs: { (DQ <a-> <Id.Lit_Other '\\'> <303> <Id.Lit_Other '\\'> <244_o-> <Id.Lit_Other '\\'> <303> <Id.Lit_Other '\\'> <266_u-> <Id.Lit_Other '\\'> <303> <Id.Lit_Other '\\'> <274.txt> ) } spids: [15] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:ISO8859_ESCAPED) op: assign_op.Equal rhs: { (DQ <a-> <Id.Lit_Other '\\'> <344_o-> <Id.Lit_Other '\\'> <366_u-> <Id.Lit_Other '\\'> <374.txt> ) } spids: [32] ) ] ) (C {<test_expect_success>} {(SQ <'start p4d'>)} {(SQ <'\n'> <'\tstart_p4d\n'>)}) (C {<test_expect_success>} {(SQ <'Create a repo containing iso8859-1 encoded paths'>)} { (SQ <'\n'> <'\t(\n'> <'\t\tcd "$cli" &&\n'> <'\t\tISO8859="$(printf "$ISO8859_ESCAPED")" &&\n'> <'\t\techo content123 >"$ISO8859" &&\n'> <'\t\tp4 add "$ISO8859" &&\n'> <'\t\tp4 submit -d "test commit"\n'> <'\t)\n'> ) } ) (C {<test_expect_failure>} {(SQ <'Clone auto-detects depot with iso8859-1 paths'>)} { (SQ <'\n'> <'\tgit p4 clone --destination="$git" //depot &&\n'> <'\ttest_when_finished cleanup_git &&\n'> <'\t(\n'> <'\t\tcd "$git" &&\n'> <'\t\tUTF8="$(printf "$UTF8_ESCAPED")" &&\n'> <'\t\techo "$UTF8" >expect &&\n'> <'\t\tgit -c core.quotepath=false ls-files >actual &&\n'> <'\t\ttest_cmp expect actual\n'> <'\t)\n'> ) } ) (C {<test_expect_success>} {(SQ <'Clone repo containing iso8859-1 encoded paths with git-p4.pathEncoding'>)} { (SQ <'\n'> <'\ttest_when_finished cleanup_git &&\n'> <'\t(\n'> <'\t\tcd "$git" &&\n'> <'\t\tgit init . &&\n'> <'\t\tgit config git-p4.pathEncoding iso8859-1 &&\n'> <'\t\tgit p4 clone --use-client-spec --destination="$git" //depot &&\n'> <'\t\tUTF8="$(printf "$UTF8_ESCAPED")" &&\n'> <'\t\techo "$UTF8" >expect &&\n'> <'\t\tgit -c core.quotepath=false ls-files >actual &&\n'> <'\t\ttest_cmp expect actual &&\n'> <'\n'> <'\t\techo content123 >expect &&\n'> <'\t\tcat "$UTF8" >actual &&\n'> <'\t\ttest_cmp expect actual\n'> <'\t)\n'> ) } ) (C {<test_expect_success>} {(SQ <'kill p4d'>)} {(SQ <'\n'> <'\tkill_p4d\n'>)}) (C {<test_done>}) ] )