[Bash-completion-devel] [bash-completion-Bugs][312477] _filedir unit test fails in C locale with bash 4.1.x, with any locale with bash 3.2.x
bash-completion-bugs at alioth.debian.org
bash-completion-bugs at alioth.debian.org
Sat Oct 23 09:38:11 UTC 2010
Bugs item #312477, was changed at 2010-04-26 18:35 by Freddy Vulto
You can respond by visiting:
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312477&group_id=100114
Status: Open
Priority: 3
Submitted By: Ville Skyttä (scop-guest)
Assigned to: Nobody (None)
Summary: _filedir unit test fails in C locale with bash 4.1.x, with any locale with bash 3.2.x
Distribution: None
Originally reported in: None
Milestone: None
Status: None
Original bug number:
Initial Comment:
With my usual setting (LANG=en_US.UTF-8) it passes, but:
$ LANG=C ./runUnit _filedir.exp
WARNING: Couldn't find the global config file.
Test Run By scop on Mon Apr 26 19:33:04 2010
Native configuration is x86_64-unknown-linux-gnu
=== unit tests ===
Schedule of variations:
unix
Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ./config/default.exp as tool-and-target-specific interface file.
Running ./unit/_filedir.exp ...
FAIL: f aé/ should show completions at timeout
FAIL: f aé/ should show completions
=== unit Summary ===
# of expected passes 46
# of unexpected failures 2
/home/scop/cvs/bash-completion/test, bash-4.1.2(1)-release
----------------------------------------------------------------------
>Comment By: Freddy Vulto (fvu-guest)
Date: 2010-10-23 11:38
Message:
I think I found a bug (segmentation fault) in Expect regarding unicode. Can you confirm this?
$ cat unicode.exp
spawn bash
send "aaébb"
expect -ex "aaébb" {send_user "PASS"}
$ expect -f unicode.exp
spawn bash
aaébbSegmentation fault
See also: http://groups.google.com/group/comp.lang.tcl/browse_thread/thread/8ea4b666c2f31cac#
----------------------------------------------------------------------
Comment By: Ville Skyttä (scop-guest)
Date: 2010-10-21 07:50
Message:
Yes, it works with bash 4.1.7 and en_US.UTF-8 for me, and appears to skip the test with that bash version and LC_ALL=C. I'd expect it to explicitly tell me that some tests were unsupported/skipped though; with en_US.UTF-8 I get:
=== unit Summary ===
# of expected passes 47
/home/scop/cvs/bash-completion/test, bash-4.1.7(1)-release
...and with LC_ALL=C:
=== unit Summary ===
# of expected passes 46
/home/scop/cvs/bash-completion/test, bash-4.1.7(1)-release
----------------------------------------------------------------------
Comment By: Freddy Vulto (fvu-guest)
Date: 2010-10-20 23:23
Message:
I'm running out of options... But it's working on bash-4.1 now, right? Then maybe we can skip the unicode test for bash <= 3?
----------------------------------------------------------------------
Comment By: Ville Skyttä (scop-guest)
Date: 2010-10-20 23:00
Message:
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
$ LC_ALL=en_US.UTF-8 ./run --tool_exec ~/bin/bash-3.2.39 [...]
# Setting LC_ALL makes no difference
$ expect -v
expect version 5.43.0
$ tclsh
% info patchlevel
8.5.8
Patching test/config/bashrc and test/lib/library.exp with your suggested changes make no difference either :(
----------------------------------------------------------------------
Comment By: Freddy Vulto (fvu-guest)
Date: 2010-10-20 22:49
Message:
More information about the Bash-completion-devel
mailing list