1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 04:50:27 +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

@ -6,6 +6,9 @@
* 29448: Completion/Unix/Command/_initctl: complete symlinks * 29448: Completion/Unix/Command/_initctl: complete symlinks
to files too. to files too.
* 29422: Test/D04parameter.ztst: Fix test for g:: to not depend
on the current locale.
2011-06-03 Peter Stephenson <p.w.stephenson@ntlworld.com> 2011-06-03 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 29413: Doc/Zsh/builtins.yo, Src/builtin.c, Src/hist.c: print * 29413: Doc/Zsh/builtins.yo, Src/builtin.c, Src/hist.c: print
@ -14939,5 +14942,5 @@
***************************************************** *****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL * This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5358 $ * $Revision: 1.5359 $
***************************************************** *****************************************************

View file

@ -300,23 +300,16 @@
foo='\u65\123' foo='\u65\123'
print -r ${(g:o:)foo} print -r ${(g:o:)foo}
foo='\u65\0123' foo='\u65\0123^X\C-x'
print -r ${(g::)foo} print -r ${(g::)foo}
foo='\u65^X' foo='^X'
print -r ${(V)${(g:c:)foo}} bar='\C-\130'
foo='\u65\C-x\M-a' [[ ${(g:c:)foo} == ${(g:oe:)bar} ]]
print -r ${(V)${(g:e:)foo}} echo $?
foo='\u65\123\C-x'
print -r ${(V)${(g:eo:)foo}}
foo=('\u65' '\0123' '^X\M-a')
print -r ${(V)${(g:e:)foo}}
0:${(g)...} 0:${(g)...}
>eS >eS
>eS >eS^X\C-x
>e^X >0
>e^X\M-a
>eS^X
>e S ^X\M-a
foo='I'\''m nearly out of my mind with tedium' foo='I'\''m nearly out of my mind with tedium'
bar=foo bar=foo