diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-05 19:10:21 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-05 19:10:21 +0200 |
commit | fda9fafe279d9394ad53313320a949c86f646734 (patch) | |
tree | 3552e44de84460a8d2526f5b9703e70dea1a6259 /shell/ash_test | |
parent | 6798486141057f7989c0e59d5f645aba87a58f62 (diff) | |
download | busybox-w32-fda9fafe279d9394ad53313320a949c86f646734.tar.gz busybox-w32-fda9fafe279d9394ad53313320a949c86f646734.tar.bz2 busybox-w32-fda9fafe279d9394ad53313320a949c86f646734.zip |
ash: fix matching of unicode greek letter rho (cf 81) and similar cases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
-rw-r--r-- | shell/ash_test/ash-quoting/unicode_8x_chars.right | 6 | ||||
-rwxr-xr-x | shell/ash_test/ash-quoting/unicode_8x_chars.tests | 28 |
2 files changed, 34 insertions, 0 deletions
diff --git a/shell/ash_test/ash-quoting/unicode_8x_chars.right b/shell/ash_test/ash-quoting/unicode_8x_chars.right new file mode 100644 index 000000000..7780b88b4 --- /dev/null +++ b/shell/ash_test/ash-quoting/unicode_8x_chars.right | |||
@@ -0,0 +1,6 @@ | |||
1 | ok | ||
2 | ok | ||
3 | ok | ||
4 | ok | ||
5 | ok | ||
6 | ok | ||
diff --git a/shell/ash_test/ash-quoting/unicode_8x_chars.tests b/shell/ash_test/ash-quoting/unicode_8x_chars.tests new file mode 100755 index 000000000..1258745ec --- /dev/null +++ b/shell/ash_test/ash-quoting/unicode_8x_chars.tests | |||
@@ -0,0 +1,28 @@ | |||
1 | # Unicode: cf 80 | ||
2 | case π in | ||
3 | ( "π" ) echo ok ;; | ||
4 | ( * ) echo WRONG ;; | ||
5 | esac | ||
6 | # Unicode: cf 81 | ||
7 | case ρ in | ||
8 | ( "ρ" ) echo ok ;; | ||
9 | ( * ) echo WRONG ;; | ||
10 | esac | ||
11 | # Unicode: cf 82 | ||
12 | case ς in | ||
13 | ( "ς" ) echo ok ;; | ||
14 | ( * ) echo WRONG ;; | ||
15 | esac | ||
16 | |||
17 | case "π" in | ||
18 | ( π ) echo ok ;; | ||
19 | ( * ) echo WRONG ;; | ||
20 | esac | ||
21 | case "ρ" in | ||
22 | ( ρ ) echo ok ;; | ||
23 | ( * ) echo WRONG ;; | ||
24 | esac | ||
25 | case "ς" in | ||
26 | ( ς ) echo ok ;; | ||
27 | ( * ) echo WRONG ;; | ||
28 | esac | ||