Testsuite: account for (now) properly working Perl locale
authorJeremy Harris <jgh146exb@wizmail.org>
Sun, 10 Feb 2019 20:25:59 +0000 (20:25 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 11 Feb 2019 00:17:44 +0000 (00:17 +0000)
test/runtest
test/scripts/3000-Perl/3000
test/stdout/3000

index 729f88a66b19b68647e125f580cfe3349b4a6dda..d52facc7a83e383b70d62df90f755c97943aaa28 100755 (executable)
@@ -494,6 +494,9 @@ RESET_AFTER_EXTRA_LINE_READ:
   # Date/time in header lines and SMTP responses
   s/[A-Z][a-z]{2},\s\d\d?\s[A-Z][a-z]{2}\s\d\d\d\d\s\d\d\:\d\d:\d\d\s[-+]\d{4}
     /Tue, 2 Mar 1999 09:44:33 +0000/gx;
+  # and in a French locale
+  s/\S{4},\s\d\d?\s[^,]+\s\d\d\d\d\s\d\d\:\d\d:\d\d\s[-+]\d{4}
+    /dim., 10 f\xE9vr 2019 20:05:49 +0000/gx;
 
   # Date/time in logs and in one instance of a filter test
   s/^\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(\s[+-]\d\d\d\d)?\s/1999-03-02 09:44:33 /gx;
index 60db492ad328c1c419679ebdda39688146cf8aa4..c3c01115b2da1dc4232088bdfd55e5f3b185feb4 100644 (file)
@@ -19,6 +19,7 @@ ${perl{return_list}}
 ${perl{return_variable_vector}}
 ${sg{${perl{return_hash}}}{\\d+}{X}}
 
+this change-locale fails in earlier systems.  Works on Fedora 29.
 $tod_full // ${perl{change_locale}} // $tod_full
 ****
 exim -d-all+expand -be
index 50be468c24ef251885c1459b5685d726ef2d311a..9613d0e4506df853d784cf7b4d6f8ccd77044f14 100644 (file)
@@ -19,7 +19,8 @@
 > 3
 > X
 > 
-> Tue, 2 Mar 1999 09:44:33 +0000 // Changed locale // Tue, 2 Mar 1999 09:44:33 +0000
+> this change-locale fails in earlier systems.  Works on Fedora 29.
+> Tue, 2 Mar 1999 09:44:33 +0000 // Changed locale // dim., 10 févr 2019 20:05:49 +0000
 > 
 > Subroutine foo called with args: arg1
 > Failed: Perl subroutine "foo_undef" returned undef to force failure