On Sat, 26 Aug 2006, Paolo Campanella wrote:

> Doing "make test" for Mason 1.33 source, I get:
>
> ==============================================
> t/21-escapes..................NOK 3#     Failed test (t/21-escapes.t at
> line 28)#          got: '%22%3D%E2'
> #     expected: '%22%3D%E2%88%82'
> # Looks like you failed 1 tests of 3.
> ==============================================
>
> I'm using perl 5.8.0 on Centos.
>
> Running a portion of the test manually, I see that 
> HTML::Mason::Escapes::url_escape does indeed return %22%3D%E2, whereas 
> the same function in my existing Mason 1.28 returns %22%3D%2202.
>
> FWIW, using Encode and URI::Escape, this code:
>  uri_escape(encode("UTF-8", qq|"=\x{2202}|));
> produces the correct %22%3D%E2%88%82.

This is weird. My first guess would be that something is broken with "use 
bytes" in 5.8.0. There've been a lot of utf8 bug fixes since 5.8.0

What does this print for you?

  perl -le '$x = "=\x{2022}"; use bytes; print ord for split //, $x'

It should print this:

  61
  226
  128
  162



-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to