posted: Make D07 recognize more spellings of pl_PL.UTF-8

FreeBSD and probably others use this spelling in locale -a output, while
glibc uses the utf8 spelling.
This commit is contained in:
Mikael Magnusson 2017-01-24 12:01:57 +01:00
parent 3e5badb0c9
commit 0e33ebc651
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2017-01-24 Mikael Magnusson <mikachu@gmail.com>
* posted: Test/D07multibyte.ztst: Make D07 recognize more
spellings of pl_PL.UTF-8
2017-01-24 Peter Stephenson <p.stephenson@samsung.com>
* 40404: Src/builtin.c: quoting of commands in whence should

View file

@ -549,9 +549,9 @@
"↓"
}
: $functions)
0:Multibtye handling of functions parameter
0:Multibyte handling of functions parameter
if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.utf8]} ]]; then
if [[ -n ${$(locale -a 2>/dev/null)[(R)pl_PL.(utf8|UTF-8)]} ]]; then
(
export LC_ALL=pl_PL.UTF-8
local -a names=(a b c d e f $'\u0105' $'\u0107' $'\u0119')