From 1cdaec9af8b063f6ce7a2b033bf1aafac5bba63e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 4 Jun 2014 15:38:47 -0500 Subject: [PATCH] yaz: fix encoding issue in test --- Formula/yaz.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Formula/yaz.rb b/Formula/yaz.rb index 68ec225c35..8b34eae6ad 100644 --- a/Formula/yaz.rb +++ b/Formula/yaz.rb @@ -31,6 +31,7 @@ class Yaz < Formula end result = `"#{bin}/yaz-iconv" -f marc8 -t utf8 marc8.txt`.chomp + result.force_encoding(Encoding::UTF_8) if result.respond_to?(:force_encoding) assert_equal "世界こんにちは!", result end end