zsh-workers
 help / color / mirror / code / Atom feed
* Multibyte test regressed on MacOSX Leopard
@ 2008-10-15 18:55 İsmail Dönmez
  2008-10-18 15:13 ` Peter Stephenson
  0 siblings, 1 reply; 3+ messages in thread
From: İsmail Dönmez @ 2008-10-15 18:55 UTC (permalink / raw)
  To: zsh workers

Hi,

With the latest changes, multibyte test now fails on MacOSX 10.5.5 Leopard,

./D07multibyte.ztst: starting.
Testing multibyte with locale en_US.UTF-8
Test ./D07multibyte.ztst failed: bad status 1, expected 0 from:
 mkdir glob
 mkdir glob/'()Ą' glob/'()Ā'
 mkdir glob/'()Ą'/foo glob/'()Ā'/bar
 tmp1=('glob/\(\)Ą/*')
 print $~tmp1
 tmp1=('glob/\(\)Ā/*')
 print $~tmp1
Error output:
(eval):5: no matches found: glob/\(\)Ą/*
Was testing: Backslashes and metafied characters in patterns
./D07multibyte.ztst: test failed.

Regards,
ismail

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multibyte test regressed on MacOSX Leopard
  2008-10-15 18:55 Multibyte test regressed on MacOSX Leopard İsmail Dönmez
@ 2008-10-18 15:13 ` Peter Stephenson
  2008-10-18 21:13   ` İsmail Dönmez
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2008-10-18 15:13 UTC (permalink / raw)
  To: zsh workers

..On Wed, 15 Oct 2008 21:55:56 +0300
"İsmail Dönmez" <ismail@namtrac.org> wrote:
> With the latest changes, multibyte test now fails on MacOSX 10.5.5 Leopard,
> 
> ./D07multibyte.ztst: starting.
> Testing multibyte with locale en_US.UTF-8
> Test ./D07multibyte.ztst failed: bad status 1, expected 0 from:
>  mkdir glob
>  mkdir glob/'()Ą' glob/'()Ā'
>  mkdir glob/'()Ą'/foo glob/'()Ā'/bar
>  tmp1=('glob/\(\)Ą/*')
>  print $~tmp1
>  tmp1=('glob/\(\)Ā/*')
>  print $~tmp1
> Error output:
> (eval):5: no matches found: glob/\(\)Ą/*
> Was testing: Backslashes and metafied characters in patterns
> ./D07multibyte.ztst: test failed.

I wonder if this is because the characters are stored in a different
format in file names.

Index: Test/D07multibyte.ztst
===================================================================
RCS file: /cvsroot/zsh/zsh/Test/D07multibyte.ztst,v
retrieving revision 1.26
diff -u -r1.26 D07multibyte.ztst
--- Test/D07multibyte.ztst	11 Oct 2008 22:16:01 -0000	1.26
+++ Test/D07multibyte.ztst	18 Oct 2008 15:12:56 -0000
@@ -396,13 +396,10 @@
 >OK
 >OK
 
-  mkdir glob
-  mkdir glob/'()Ą' glob/'()Ā'
-  mkdir glob/'()Ą'/foo glob/'()Ā'/bar
-  tmp1=('glob/\(\)Ą/*')
-  print $~tmp1
-  tmp1=('glob/\(\)Ā/*')
-  print $~tmp1
+  tmp1='glob/\(\)Ą/*'
+  [[ glob/'()Ą'/foo == $~tmp1 ]] && print "Matched against $tmp1"
+  tmp1='glob/\(\)Ā/*'
+  [[ glob/'()Ā'/bar == $~tmp1 ]] && print "Matched against $tmp1"
 0:Backslashes and metafied characters in patterns
->glob/()Ą/foo
->glob/()Ā/bar
+>Matched against glob/()Ą/*
+>Matched against glob/()Ā/*


-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Multibyte test regressed on MacOSX Leopard
  2008-10-18 15:13 ` Peter Stephenson
@ 2008-10-18 21:13   ` İsmail Dönmez
  0 siblings, 0 replies; 3+ messages in thread
From: İsmail Dönmez @ 2008-10-18 21:13 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: zsh workers

On Sat, Oct 18, 2008 at 18:13, Peter Stephenson
<p.w.stephenson@ntlworld.com> wrote:
> ..On Wed, 15 Oct 2008 21:55:56 +0300
> "İsmail Dönmez" <ismail@namtrac.org> wrote:
>> With the latest changes, multibyte test now fails on MacOSX 10.5.5 Leopard,
>>
>> ./D07multibyte.ztst: starting.
>> Testing multibyte with locale en_US.UTF-8
>> Test ./D07multibyte.ztst failed: bad status 1, expected 0 from:
>>  mkdir glob
>>  mkdir glob/'()Ą' glob/'()Ā'
>>  mkdir glob/'()Ą'/foo glob/'()Ā'/bar
>>  tmp1=('glob/\(\)Ą/*')
>>  print $~tmp1
>>  tmp1=('glob/\(\)Ā/*')
>>  print $~tmp1
>> Error output:
>> (eval):5: no matches found: glob/\(\)Ą/*
>> Was testing: Backslashes and metafied characters in patterns
>> ./D07multibyte.ztst: test failed.
>
> I wonder if this is because the characters are stored in a different
> format in file names.
>
> Index: Test/D07multibyte.ztst
> ===================================================================
> RCS file: /cvsroot/zsh/zsh/Test/D07multibyte.ztst,v
> retrieving revision 1.26
> diff -u -r1.26 D07multibyte.ztst
> --- Test/D07multibyte.ztst      11 Oct 2008 22:16:01 -0000      1.26
> +++ Test/D07multibyte.ztst      18 Oct 2008 15:12:56 -0000
> @@ -396,13 +396,10 @@
>  >OK
>  >OK
>
> -  mkdir glob
> -  mkdir glob/'()Ą' glob/'()Ā'
> -  mkdir glob/'()Ą'/foo glob/'()Ā'/bar
> -  tmp1=('glob/\(\)Ą/*')
> -  print $~tmp1
> -  tmp1=('glob/\(\)Ā/*')
> -  print $~tmp1
> +  tmp1='glob/\(\)Ą/*'
> +  [[ glob/'()Ą'/foo == $~tmp1 ]] && print "Matched against $tmp1"
> +  tmp1='glob/\(\)Ā/*'
> +  [[ glob/'()Ā'/bar == $~tmp1 ]] && print "Matched against $tmp1"
>  0:Backslashes and metafied characters in patterns
> ->glob/()Ą/foo
> ->glob/()Ā/bar
> +>Matched against glob/()Ą/*
> +>Matched against glob/()Ā/*

This fixed the problem for me.

Thanks!

/ismail

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-10-18 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-15 18:55 Multibyte test regressed on MacOSX Leopard İsmail Dönmez
2008-10-18 15:13 ` Peter Stephenson
2008-10-18 21:13   ` İsmail Dönmez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).