1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

Reset LANG and LC_CTYPE before running tests (thus avoiding that everything defaults to UTF-8 on OSX).

This commit is contained in:
Konstantin Haase 2010-12-13 09:48:11 +01:00
parent 88d378ab94
commit 30de33861a

View file

@ -12,6 +12,10 @@ def source_version
end end
# SPECS =============================================================== # SPECS ===============================================================
task :test do
ENV['LANG'] = 'C'
ENV.delete 'LC_CTYPE'
end
if !ENV['NO_TEST_FIX'] and RUBY_VERSION == '1.9.2' and RUBY_PATCHLEVEL == 0 if !ENV['NO_TEST_FIX'] and RUBY_VERSION == '1.9.2' and RUBY_PATCHLEVEL == 0
# Avoids seg fault # Avoids seg fault