# HG changeset patch # User Sergey Kandaurov # Date 1435924226 -10800 # Node ID 35832048546eae91338d8de4b188a2b2bd48e90f # Parent e9f48f1e905ba6acb60fef954577870feb92aaf4 Tests: respected custom locales when parsing $date_gmt in ssi.t. Notably, this fixes tests on win32 with cp1251. diff --git a/ssi.t b/ssi.t --- a/ssi.t +++ b/ssi.t @@ -177,7 +177,7 @@ like(http_get('/unescape3.html'), qr/404 # handling of embedded date variables -my $re_date_gmt = qr/X-Var: x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d [\w ]+x/; +my $re_date_gmt = qr/X-Var: x.+, \d\d-.+-\d{4} \d\d:\d\d:\d\d .+x/; like(http_get('/var_nossi.html'), $re_date_gmt, 'no ssi'); like(http_get('/var_noformat.html'), $re_date_gmt, 'no format'); @@ -186,8 +186,8 @@ like(http_get('/var_format.html?custom=1 like(http_get('/var_format.html'), $re_date_gmt, 'default header'); like(http_get('/var_format.html?custom=1'), - qr/x\w+, \d\d:\d\d:\d\dx/, 'custom ssi'); + qr/x.+, \d\d:\d\d:\d\dx/, 'custom ssi'); like(http_get('/var_format.html'), - qr/x\w+, \d\d-\w{3}-\d{4} \d\d:\d\d:\d\d [\w ]+x/, 'default ssi'); + qr/x.+, \d\d-.+-\d{4} \d\d:\d\d:\d\d .+x/, 'default ssi'); ###############################################################################