Modify regexp.test to work better with mac/darwin
authorMichael Gran <spk121@yahoo.com>
Mon, 12 Oct 2009 13:55:25 +0000 (06:55 -0700)
committerMichael Gran <spk121@yahoo.com>
Mon, 12 Oct 2009 13:55:25 +0000 (06:55 -0700)
* test-suite/tests/regexp.test (set-latin-1): also add .ISO8859-1 as a
  possible extension for latin-1 locales.  Use set-latin-1 exclusively
  to set the locale for tests.

test-suite/tests/regexp.test

index d840f04..422d8f3 100644 (file)
           '("fr_FR" "es_MX" "es_ES" "en_GB" "en_US" "de_DE" "pt_PT"))
      (map (lambda (name)
             (string-append name ".iso88591"))
-          '("fr_FR" "es_MX" "es_ES" "en_GB" "en_US" "de_DE" "pt_PT"))))
+          '("fr_FR" "es_MX" "es_ES" "en_GB" "en_US" "de_DE" "pt_PT"))
+     (map (lambda (name)
+            (string-append name ".ISO8859-1"))
+          '("fr_FR" "es_MX" "es_ES" "en_GB" "en_US" "de_DE" "pt_PT"))
+     ))
    (begin
      (false-if-exception (set-port-encoding! (current-input-port) 
                                              "ISO-8859-1"))
                          (= 2 (match:end m)))))))
 
           (pass-if "string of all chars"
-             (setbinary)
+             (set-latin-1)
              (let ((m (regexp-exec (make-regexp (regexp-quote allchars)
                                                 flag) allchars)))
                (and (= 0 (match:start m))