From fc1b774c72990f0ff92370316412b19fd72baa77 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 22 May 2014 05:30:29 -0400 Subject: remote-curl: reencode http error messages We currently recognize an error message with a content-type "text/plain; charset=utf-16" as text, but we ignore the charset parameter entirely. Let's encode it to log_output_encoding, which is presumably something the user's terminal can handle. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- t/lib-httpd/error.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/lib-httpd') diff --git a/t/lib-httpd/error.sh b/t/lib-httpd/error.sh index 23cec97cc3..eafc9d2d90 100755 --- a/t/lib-httpd/error.sh +++ b/t/lib-httpd/error.sh @@ -15,6 +15,10 @@ case "$PATH_INFO" in printf "text/plain; charset=utf-8" charset=utf-8 ;; +*utf16*) + printf "text/plain; charset=utf-16" + charset=utf-16 + ;; esac printf "\n" -- cgit v1.2.1