# 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 -r e9f48f1e905b -r 35832048546e ssi.t --- a/ssi.t Thu Jul 02 18:41:59 2015 +0300 +++ b/ssi.t Fri Jul 03 14:50:26 2015 +0300 @@ -177,7 +177,7 @@ # 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'), $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'); ###############################################################################