aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-06-04 16:41:07 -0500
committerJack Nagel2014-06-04 16:41:07 -0500
commitf5b758e6ab8f6a9eb8358435c23a8f773fe85e01 (patch)
treee014576f56f4edaddda08d744425c2833220e546
parent6d4314ed9ddb220a11e61369d216221a7f8d84ed (diff)
downloadhomebrew-f5b758e6ab8f6a9eb8358435c23a8f773fe85e01.tar.bz2
Remove unicode from example formula
-rw-r--r--Library/Contributions/example-formula.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb
index 6f3c9e5b1..e4c1eb59a 100644
--- a/Library/Contributions/example-formula.rb
+++ b/Library/Contributions/example-formula.rb
@@ -396,10 +396,10 @@ class ExampleFormula < Formula
# Need complete control over stdin, stdout?
require "open3"
- Open3.popen3("#{bin}/example", "big5:utf-8") do |stdin, stdout, _|
- stdin.write("\263\134\245\134\273\134")
+ Open3.popen3("#{bin}/example", "argument") do |stdin, stdout, _|
+ stdin.write("some text")
stdin.close
- assert_equal "許功蓋", stdout.read
+ assert_equal "result", stdout.read
end
# If an exception is raised (e.g. by assert), or if we return false, or if