# # # patch "ChangeLog" # from [fd26fda1d224fd66f3f13562761a70fe725d7fd7] # to [5fd8be7724bf93b7d09172de1b5fc1e36e4784cf] # # patch "testsuite.lua" # from [53b76334af1d7a7a9601966dcd967a9e99e93b9a] # to [21d2f5ef281214c171474776edde8a70c2e98210] # ============================================================ --- ChangeLog fd26fda1d224fd66f3f13562761a70fe725d7fd7 +++ ChangeLog 5fd8be7724bf93b7d09172de1b5fc1e36e4784cf @@ -1,3 +1,9 @@ +2006-06-22 Richard Levitte + + * testsuite.lua: Make sure to set all NLS environment variables + to "C", so tests don't fail when the default locale is non- + english. + 2006-06-21 Matthew Gregan * tests/empty_environment/__driver__.lua: Fix test on Cygwin--copy ============================================================ --- testsuite.lua 53b76334af1d7a7a9601966dcd967a9e99e93b9a +++ testsuite.lua 21d2f5ef281214c171474776edde8a70c2e98210 @@ -46,6 +46,26 @@ if monotone_path == nil then monotone_path = "mtn" end set_env("mtn", monotone_path) +-- NLS nuisances. +for _,name in pairs({ "LANG", + "LANGUAGE", + "LC_ADDRESS", + "LC_ALL", + "LC_COLLATE", + "LC_CTYPE", + "LC_IDENTIFICATION", + "LC_MEASUREMENT", + "LC_MESSAGES", + "LC_MONETARY", + "LC_NAME", + "LC_NUMERIC", + "LC_PAPER", + "LC_TELEPHONE", + "LC_TIME" }) do + set_env(name,"C") +end + + function safe_mtn(...) return {monotone_path, "--norc", "--root=" .. test.root, unpack(arg)} end