diff options
author | Eric Wong <normalperson@yhbt.net> | 2016-02-22 02:17:51 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2016-02-22 02:21:19 +0000 |
commit | 3df0d26ca6664a20364a323ffe9915459901cf05 (patch) | |
tree | b4a3e5039fbd9e25fa09416c7d66228629557847 /t/lib-git-svn.sh | |
parent | 0233b800c838ddda41db318ee396320b3c21a560 (diff) | |
download | git-3df0d26ca6664a20364a323ffe9915459901cf05.tar.gz |
git-svn: hoist out utf8 prep from t9129 to lib-git-svn
We will be reusing this in t9115.
Suggested-by: Kazutoshi Satoda <k_satoda@f2.dion.ne.jp>
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 't/lib-git-svn.sh')
-rw-r--r-- | t/lib-git-svn.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh index b0ec12ff6c..6a50b8793e 100644 --- a/t/lib-git-svn.sh +++ b/t/lib-git-svn.sh @@ -186,3 +186,15 @@ start_svnserve () { --listen-host 127.0.0.1 & } +prepare_a_utf8_locale () { + a_utf8_locale=$(locale -a | sed -n '/\.[uU][tT][fF]-*8$/{ + p + q +}') + if test -n "$a_utf8_locale" + then + test_set_prereq UTF8 + else + say "# UTF-8 locale not available, some tests are skipped" + fi +} |