From 2482bc95bfb321bae3bb70d6516df53efc631261 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Mon, 2 Sep 2013 16:08:23 +0100 Subject: [PATCH] t4041: ensure the utf-8 encoded string really gets stored as utf-8. Signed-off-by: Pat Thoyts --- t/t4041-diff-submodule-option.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t4041-diff-submodule-option.sh b/t/t4041-diff-submodule-option.sh index 1751c83307..306b233e27 100755 --- a/t/t4041-diff-submodule-option.sh +++ b/t/t4041-diff-submodule-option.sh @@ -13,7 +13,7 @@ This test tries to verify the sanity of the --submodule option of git diff. # String "added" in German (translated with Google Translate), encoded in UTF-8, # used in sample commit log messages in add_file() function below. -added=$(printf "hinzugef\303\274gt") +added=$(printf "hinzugef\303\274gt" | iconv -t utf-8) add_file () { ( cd "$1" && -- 2.11.4.GIT