From 0357edcf3b50b68362dcf4c79271786b4b9b6f60 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 4 Jun 2014 16:41:07 -0500 Subject: [PATCH] Remove unicode from example formula --- Library/Contributions/example-formula.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb index 6f3c9e5b15..e4c1eb59a6 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