git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t9129: fix UTF-8 locale detection
@ 2010-05-18 14:41 Yann Droneaud
  2010-05-18 16:05 ` Michael J Gruber
  0 siblings, 1 reply; 23+ messages in thread
From: Yann Droneaud @ 2010-05-18 14:41 UTC (permalink / raw)
  To: git; +Cc: Yann Droneaud

Since I don't have en_US.utf8, some tests failed:

  * UTF-8 locale not available, test skipped
  * skip 10: ISO-8859-1 should match UTF-8 in svn
  * skip 11: eucJP should match UTF-8 in svn
  * skip 12: ISO-2022-JP should match UTF-8 in svn

On my system locale -a reports:

   en_US
   en_US.ISO-8859-1
   en_US.UTF-8

According to Wikipedia utf8 is not a correct name
for the UTF-8 encoding:
http://en.wikipedia.org/wiki/UTF-8#Official_name_and_incorrect_variants

And compare_svn_head_with() is explicitly using en_US.UTF-8
locale.

Signed-off-by: Yann Droneaud <yann@droneaud.fr>
---
 t/t9129-git-svn-i18n-commitencoding.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/t/t9129-git-svn-i18n-commitencoding.sh b/t/t9129-git-svn-i18n-commitencoding.sh
index b9224bd..ec6ed4f 100755
--- a/t/t9129-git-svn-i18n-commitencoding.sh
+++ b/t/t9129-git-svn-i18n-commitencoding.sh
@@ -69,7 +69,7 @@ do
 	'
 done
 
-if locale -a |grep -q en_US.utf8; then
+if locale -a |grep -q en_US.UTF-8; then
 	test_set_prereq UTF8
 else
 	say "UTF-8 locale not available, test skipped"
-- 
1.6.4.4

^ permalink raw reply related	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-01-07 18:49 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-18 14:41 [PATCH] t9129: fix UTF-8 locale detection Yann Droneaud
2010-05-18 16:05 ` Michael J Gruber
2010-05-18 17:08   ` Yann Droneaud
2010-05-18 17:16     ` Yann Droneaud
2010-05-18 17:45       ` Linus Torvalds
2010-05-18 19:58         ` Andreas Schwab
2010-05-18 20:00           ` Linus Torvalds
2010-05-18 20:49         ` Yann Droneaud
2010-05-19 15:16           ` Yann Droneaud
2010-06-02 19:14         ` Re* " Junio C Hamano
2010-05-24 17:08     ` Yann Droneaud
2010-05-25  7:33       ` Michael J Gruber
2011-01-06 14:22       ` [PATCH/RFC 0/4] en_US.UTF-8 " Yann Droneaud
2011-01-06 14:22         ` [PATCH 1/4] test: add a library to detect an en_US.UTF-8 locale Yann Droneaud
2011-01-07 18:37           ` Junio C Hamano
2011-01-06 14:22         ` [PATCH 2/4] test-lib.sh: add test_utf8() function Yann Droneaud
2011-01-07 18:45           ` Junio C Hamano
2011-01-06 14:22         ` [PATCH 3/4] test: use test_utf8 and GIT_LC_UTF8 where an en_US.UTF-8 locale is required Yann Droneaud
2011-01-07 18:48           ` Junio C Hamano
2011-01-06 14:22         ` [PATCH 4/4] t9129: use "$PERL_PATH" instead of "perl" Yann Droneaud
2011-01-07 18:49           ` Junio C Hamano
2010-05-18 20:37   ` [PATCH] t9129: fix UTF-8 locale detection Yann Droneaud
2010-05-19  2:44     ` Miles Bader

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).