summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-06-03 20:55:40 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-06-03 20:55:40 +0000
commit16324d2ff347e96e43dd95780ff014d2183faf8d (patch)
tree76f13ea525b2b84ad53da0eced73e10153ad2115 /Test
parente468775400a345dbe0acc4e68891bae5127e6f98 (diff)
downloadzsh-16324d2ff347e96e43dd95780ff014d2183faf8d.tar.gz
zsh-16324d2ff347e96e43dd95780ff014d2183faf8d.tar.xz
zsh-16324d2ff347e96e43dd95780ff014d2183faf8d.zip
29422: fix g:: test failing in some locales
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst21
1 files changed, 7 insertions, 14 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 6379c8cd0..378505e12 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -300,23 +300,16 @@
 
   foo='\u65\123'
   print -r ${(g:o:)foo}
-  foo='\u65\0123'
+  foo='\u65\0123^X\C-x'
   print -r ${(g::)foo}
-  foo='\u65^X'
-  print -r ${(V)${(g:c:)foo}}
-  foo='\u65\C-x\M-a'
-  print -r ${(V)${(g:e:)foo}}
-  foo='\u65\123\C-x'
-  print -r ${(V)${(g:eo:)foo}}
-  foo=('\u65' '\0123' '^X\M-a')
-  print -r ${(V)${(g:e:)foo}}
+  foo='^X'
+  bar='\C-\130'
+  [[ ${(g:c:)foo} == ${(g:oe:)bar} ]]
+  echo $?
 0:${(g)...}
 >eS
->eS
->e^X
->e^X\M-a
->eS^X
->e S ^X\M-a
+>eS^X\C-x
+>0
 
   foo='I'\''m nearly out of my mind with tedium'
   bar=foo