Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

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



On at least OpenBSD 5.8, locale -a lists it as pl_PL.UTF-8 instead of
pl_PL.utf8 as glibc does.

---
 Test/D07multibyte.ztst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Test/D07multibyte.ztst b/Test/D07multibyte.ztst
index d5a15ef048..bd7df81775 100644
--- a/Test/D07multibyte.ztst
+++ b/Test/D07multibyte.ztst
@@ -551,7 +551,7 @@
   : $functions)
 0:Multibtye 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')
-- 
2.8.2



Messages sorted by: Reverse Date, Date, Thread, Author