Follow-up Comment #2, bug #24703 (project grep):
In my environment, foad1.sh did not fail when
LC_ALL was unset.
When LC_ALL was set to C , e.g. by adding
LC_ALL=C; export LC_ALL
to the top of foad1.sh, the grep Word -o -i tests failed again.
Some environment info (just highlights, full output is in attached file):
# uname -a
Linux [computer-name] 2.6.18-6-486 #1 Mon Oct 13 15:35:23 UTC 2008 i686
GNU/Linux
#
#
# cat /etc/debian_version
4.0
#
#
# env | grep 'LC'
(no output)
#
#
# env | grep 'LANG'
LANG=en_US.UTF-8
#
#
# locale -k LC_CTYPE
ctype-class-names="upper";"lower";"alpha";"digit";"xdigit";"space";"print";"graph";"blank";"cntrl";"punct";"alnum";"combining";"combining_level3"
ctype-map-names="toupper";"tolower";"totitle"
...
charmap="UTF-8"
...
map-to-nonascii=0
#
#
# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
...
LC_COLLATE="en_US.UTF-8"
...
LC_MESSAGES="en_US.UTF-8"
...
LC_ALL=
See attached file for more complete information.
More info can be provided upon request.
(file #16859)
_______________________________________________________
Additional Item Attachment:
File name: greptests.txt Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?24703>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/