| 1 |
#!/bin/sh |
| 2 |
# Check that diff responds well with two different file names |
| 3 |
# that compare equal with strcoll. See: |
| 4 |
# http://lists.gnu.org/archive/html/bug-diffutils/2013-03/msg00012.html |
| 5 |
|
| 6 |
. "${srcdir=.}/init.sh"; path_prepend_ ../src |
| 7 |
|
| 8 |
# These two names compare equal in the en_US.UTF-8 locale |
| 9 |
# in current (2013) versions of glibc. |
| 10 |
# On systems where the names do not compare equal, |
| 11 |
# this diff test should still do the right thing. |
| 12 |
LC_ALL=en_US.UTF-8 |
| 13 |
export LC_ALL |
| 14 |
name1='エンドカード1' |
| 15 |
name2='ブックレット1' |
| 16 |
|
| 17 |
mkdir d1 d2 || fail=1 |
| 18 |
echo x >d1/"$name1" || fail=1 |
| 19 |
echo x >d2/"$name2" || fail=1 |
| 20 |
|
| 21 |
# This should report a difference, but on the affected systems |
| 22 |
# diffutils 3.3 does not. |
| 23 |
diff d1 d2 && fail=1 |
| 24 |
|
| 25 |
Exit $fail |