1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

29422: fix g:: test failing in some locales

This commit is contained in:
Mikael Magnusson 2011-06-03 20:55:40 +00:00
parent e468775400
commit 16324d2ff3
2 changed files with 11 additions and 15 deletions

View file

@ -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