Permalink
Browse files

Minimal compilation fix for Windows.

  • Loading branch information...
1 parent 4e47ea9 commit 0c57019dca4b1ffec4f5faf22591589521d7fbf1 @morenocarullo morenocarullo committed with jferris Apr 19, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 lib/capybara_webkit_builder.rb
@@ -30,11 +30,20 @@ def os_spec
end
def makefile
- system("LANG='en_US.UTF-8' #{qmake_bin} -spec #{spec}")
+ system("#{make_env_variables} #{qmake_bin} -spec #{spec}")
end
def qmake
- system("LANG='en_US.UTF-8' #{make_bin} qmake")
+ system("#{make_env_variables} #{make_bin} qmake")
+ end
+
+ def make_env_variables
+ case RbConfig::CONFIG['host_os']
+ when /mingw32/
+ ''
+ else
+ "LANG='en_US.UTF-8'"
+ end
end
def path_to_binary

0 comments on commit 0c57019

Please sign in to comment.