RESOLVED FIXED 121521
run-jsc-stress-tests fails with ruby version 2
https://bugs.webkit.org/show_bug.cgi?id=121521
Summary run-jsc-stress-tests fails with ruby version 2
Michael Saboff
Reported 2013-09-17 14:29:36 PDT
When running run-javascriptcore-tests with ruby version 2 installed, we get this error: Error: #<LoadError: cannot load such file -- highline> Tools/Scripts/run-jsc-stress-tests:330:in `block (4 levels) in <main>': invalid byte sequence in US-ASCII (ArgumentError) from Tools/Scripts/run-jsc-stress-tests:328:in `each_line' from Tools/Scripts/run-jsc-stress-tests:328:in `block (3 levels) in <main>' from Tools/Scripts/run-jsc-stress-tests:326:in `open' from Tools/Scripts/run-jsc-stress-tests:326:in `block (2 levels) in <main>' from Tools/Scripts/run-jsc-stress-tests:320:in `each' from Tools/Scripts/run-jsc-stress-tests:320:in `block in <main>' from Tools/Scripts/run-jsc-stress-tests:286:in `each' from Tools/Scripts/run-jsc-stress-tests:286:in `<main>' <rdar://problem/15010705>
Attachments
Patch (1.26 KB, patch)
2013-09-17 14:36 PDT, Michael Saboff
jberlin: review+
Michael Saboff
Comment 1 2013-09-17 14:36:26 PDT
Created attachment 211944 [details] Patch It appears that ruby version 2 uses the LANG environment variable to figure what character set to use when reading a file. Setting to a UTF8 language makes ruby happy.
Michael Saboff
Comment 2 2013-09-17 14:43:45 PDT
Note You need to log in before you can comment on or make changes to this bug.