git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/2] t8005: use more portable character encoding names

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
May 22, 2009, 23:47 UTC
Message-ID
<p2A1PR1KFf_G_uMMwQZtVeaDE_VcBr8lFjs9Jsg_OIkeypNbwPPRHP32EUHJ4leCZsycUOhFjHc@cipher.nrlssc.navy.mil>
In-Reply-To
<7vhbzd85ux.fsf@alter.siamese.dyndns.org>

Some platforms do not have an extensive list of alternate names for character encodings.

Solaris 7 does not know about shift-jis, but does know SJIS. It also does not know that utf-8 and UTF-8 refer to the same encoding.

With the above in mind, the following conversions were performed:
      utf-8 --> UTF-8
  shift-jis --> SJIS
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 t/t8005-blame-i18n.sh |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/t/t8005-blame-i18n.sh b/t/t8005-blame-i18n.sh
index fcd5c26..75cbced 100755
--- a/t/t8005-blame-i18n.sh
+++ b/t/t8005-blame-i18n.sh
@@ -20,7 +20,7 @@ test_expect_success 'setup the repository' '
 
 	echo "SJIS LINE" >> file &&
 	git add file &&
-	git config i18n.commitencoding shift-jis &&
+	git config i18n.commitencoding SJIS &&
 	git commit --author "$SJIS_NAME <sjis@localhost>" -m "$SJIS_MSG"
 '
 
@@ -67,8 +67,8 @@ summary $UTF8_MSG
 EOF
 
 test_expect_success \
-	'blame respects --encoding=utf-8' '
-	git blame --incremental --encoding=utf-8 file | \
+	'blame respects --encoding=UTF-8' '
+	git blame --incremental --encoding=UTF-8 file | \
 		egrep "^(author|summary) " > actual &&
 	test_cmp actual expected
 '
-- 
1.6.3.1.24.g152f4
Previous: Alex RiesenNext: Brandon Casey
Message 5 of 15 in “t8005: use more portable character encoding names”
  1. t8005: use more portable character encoding namesBrandon Casey, May 22, 2009
  2. Junio C HamanoMay 22, 2009
  3. Brandon CaseyMay 22, 2009
  4. Alex RiesenMay 22, 2009
  5. 1/2 t8005: use more portable character encoding namesBrandon Casey, May 22, 2009
  6. 2/2 t8005: convert CP1251 character set to ISO8859-5Brandon Casey, May 22, 2009
  7. Junio C HamanoMay 23, 2009
  8. Junio C HamanoMay 23, 2009
  9. Jeff KingMay 25, 2009
  10. Jeff KingMay 25, 2009
  11. Brandon CaseyMay 26, 2009
  12. Jeff KingMay 28, 2009
  13. Brandon CaseyMay 26, 2009
  14. Jeff KingMay 28, 2009
  15. Junio C HamanoMay 26, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.