(testsuite) Improve _filedir unicode test (Alioth #312477)

This commit is contained in:
Freddy Vulto 2010-10-26 22:41:01 +02:00
parent 1017b24212
commit 20f7d5c1d2

View File

@ -248,10 +248,17 @@ assert_complete_dir {ee.e1 foo/ gg.e1 ii.E1} "g " "fixtures/_filedir/ext" $test
sync_after_int sync_after_int
# Execute this test only when LC_CTYPE matches *UTF-8* set test "completing f aé should return g when LC_CTYPE=C"
if {[string first "UTF-8" $::LC_CTYPE] != -1} { # Execute this test only on bash >= 4 with LC_CTYPE matching *UTF-8*
set test "completing f aé should return g" # See also: http://www.mail-archive.com/bash-completion-devel\
# @lists.alioth.debian.org/msg02265.html
if {
[lindex $::BASH_VERSINFO 0] >= 4 &&
[string first "UTF-8" $::LC_CTYPE] != -1
} {
assert_complete_dir g "f aé/" "fixtures/_filedir" assert_complete_dir g "f aé/" "fixtures/_filedir"
} else {
unsupported "$test"
} }