diff options
| author | Jack Nagel | 2014-06-04 15:38:47 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-06-04 15:38:47 -0500 |
| commit | b702bd44020f91a763255bc93e478c26412483d5 (patch) | |
| tree | bfa1ca8744b57955e4fb97a205b63664297dbcc4 /Library/Formula | |
| parent | 5e0f013b4b99b10b3037b962a0e8540af0ad83a7 (diff) | |
| download | homebrew-b702bd44020f91a763255bc93e478c26412483d5.tar.bz2 | |
yaz: fix encoding issue in test
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/yaz.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/yaz.rb b/Library/Formula/yaz.rb index 68ec225c3..8b34eae6a 100644 --- a/Library/Formula/yaz.rb +++ b/Library/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 |
