Permalink
Browse files

Try to fix gem compilation of native extensions with foreign locale.

  • Loading branch information...
1 parent 578e5c7 commit dfa06240b8193925fca899dd8f5ce2bba877184b @espen espen committed Sep 4, 2011
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/capybara_webkit_builder.rb
View
14 lib/capybara_webkit_builder.rb
@@ -35,6 +35,18 @@ def build
def build_all
makefile &&
qmake &&
- build
+ build && fix_generated_by_header
end
+
+ def fix_generated_by_header
+ path = File.expand_path "../../Makefile", __FILE__
+ content = File.read path
+ content.force_encoding "BINARY"
+ content.sub! /# Generated by .+\n/, ""
+ File.open path, "w" do |file|
+ file.write content
+ end
+ true
+ end
+
end

0 comments on commit dfa0624

Please sign in to comment.