diff options
| author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-05-03 06:15:13 +0000 |
|---|---|---|
| committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-05-05 21:15:54 +0000 |
| commit | ab835f0c3792d228e848cac9beb904fca758e073 (patch) | |
| tree | f6ae404b885a3d7d0bfe181073a729af7dbba257 /Test | |
| parent | 45772: Restore locale on parameter scope end. (diff) | |
| download | zsh-ab835f0c3792d228e848cac9beb904fca758e073.tar zsh-ab835f0c3792d228e848cac9beb904fca758e073.tar.gz zsh-ab835f0c3792d228e848cac9beb904fca758e073.tar.bz2 zsh-ab835f0c3792d228e848cac9beb904fca758e073.tar.lz zsh-ab835f0c3792d228e848cac9beb904fca758e073.tar.xz zsh-ab835f0c3792d228e848cac9beb904fca758e073.tar.zst zsh-ab835f0c3792d228e848cac9beb904fca758e073.zip | |
45764: Add a regression test for 45772. Test by Roman
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/D07multibyte.ztst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst index e20315340..989f45183 100644 --- a/Test/D07multibyte.ztst +++ b/Test/D07multibyte.ztst @@ -585,3 +585,17 @@ >OK F:A failure here may indicate the system regex library does not F:support character sets outside the portable 7-bit range. + + ( + locale=$LANG + unset -m 'LC_*|LANG' + export LC_CTYPE=$locale + echo '\u276F' # this works + () { + local LC_ALL=C + } + echo '\u276F' # this doesn't work + ) +0:locale gets restored when locale parameters go out of scope (regression test for 45772) +>❯ +>❯ |
