From: Junio C Hamano Date: Wed, 2 Jun 2010 19:15:48 +0000 (-0700) Subject: t9129: fix UTF-8 locale detection X-Git-Tag: v1.7.2-rc0~46^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2de03ebe0635c93e182c3367140f999e79bdadcd?hp=2de03ebe0635c93e182c3367140f999e79bdadcd t9129: fix UTF-8 locale detection The UTF-8 prerequisite test checked explicitly for en_US.utf8 in the output from "locale -a", but the tests that are actually protected by the prerequisite were asking LC_ALL=en_US.UTF-8 from the system. This inconsistency leads the tests to fail on platforms that do not know both en_US.UTF-8 and en_US.utf8 (thanks you, Yann Droneaud, for bringing this up with an initial patch). Instead, pick a locale with ".UTF-8" (with or without hyphen, spelled in either upper or lowercase) in its name from "locale -a" output, and use it for running the test. Signed-off-by: Junio C Hamano ---