Code

Use UTF-8 instead of utf8 for backward compatibility
authorAlex Riesen <raa.lkml@gmail.com>
Thu, 14 May 2009 12:55:54 +0000 (14:55 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 May 2009 02:43:29 +0000 (19:43 -0700)
An old iconv (GNU libiconv 1.11) does not know about utf8, it does know
UTF-8 though, which is also understood by all newer iconv implementations.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3900-i18n-commit.sh

index 5dbbcb63454ec2396341c86f7047994e99ac8d20..b4ec2b53de2662a5ba40602d4b7a4fde984c4013 100755 (executable)
@@ -13,8 +13,8 @@ compare_with () {
        '')
                test_cmp "$2" current ;;
        ?*)
-               iconv -f "$3" -t utf8 >current.utf8 <current &&
-               iconv -f "$3" -t utf8 >expect.utf8 <"$2" &&
+               iconv -f "$3" -t UTF-8 >current.utf8 <current &&
+               iconv -f "$3" -t UTF-8 >expect.utf8 <"$2" &&
                test_cmp expect.utf8 current.utf8
                ;;
        esac