From ab835f0c3792d228e848cac9beb904fca758e073 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Sun, 3 May 2020 06:15:13 +0000 Subject: 45764: Add a regression test for 45772. Test by Roman --- ChangeLog | 5 +++++ Test/D07multibyte.ztst | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/ChangeLog b/ChangeLog index aa17d136a..b26ff83d4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-05-05 Daniel Shahaf + + * 45764: Test/D07multibyte.ztst: Add a regression test for 45772. + Test by Roman + 2020-05-05 Peter Stephenson * 45772: Src/params.c: Upon restoring locale variables, restore 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) +>❯ +>❯ -- cgit 1.4.1