Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

t/apache/util fails

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


torsten.foertsch at gmx

Mar 14, 2008, 4:24 AM

Post #1 of 1 (302 views)
Permalink
t/apache/util fails

Hi,

does anybody know why this test is failing?

I have enhanced t/response/TestApache/util.pm with a few t_debug()s before and
after the Encode::decode_utf8 call. The utf8 bit is obviously set but the ä
in Mär doesn't match \w.

# >>>> locale_is_utf8=1
# >>>> is_utf8(Fr, 14 Mär 2008 10:56:54 GMT):
# >>>> is_utf8(Fr, 14 Mär 2008 10:56:54 GMT): 1
# testing : Apache2::Util::ht_time($pool)
# expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
# received: Fr, 14 Mär 2008 10:56:54 GMT
not ok 1
...

The russian version succeeds:

# >>>> locale_is_utf8=1
# >>>> is_utf8(Птн, 14 Мар 2008 11:25:11 GMT):
# >>>> is_utf8(Птн, 14 Мар 2008 11:25:11 GMT): 1
# testing : Apache2::Util::ht_time($pool)
# expected: (?-xism:^\w+, \d\d \w+ \d\d\d\d \d\d:\d\d:\d\d)
# received: Птн, 14 Мар 2008 11:25:11 GMT
ok 1

Torsten

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe[at]perl.apache.org
For additional commands, e-mail: dev-help[at]perl.apache.org

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.