From 71b8fff3d8d171c9770bb8c69767341c10d9c962 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 8 Feb 2010 15:09:11 -0800 Subject: t/bin/*: encoding should be the first line after shebang Ruby 1.9 will complain otherwise --- t/bin/content-md5-put | 2 +- t/bin/unused_listen | 1 + t/bin/utee | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/bin/content-md5-put b/t/bin/content-md5-put index 4f02a85..01da0bb 100755 --- a/t/bin/content-md5-put +++ b/t/bin/content-md5-put @@ -1,9 +1,9 @@ #!/usr/bin/env ruby +# -*- encoding: binary -*- # simple chunked HTTP PUT request generator (and just that), # it reads stdin and writes to stdout so socat can write to a # UNIX or TCP socket (or to another filter or file) along with # a Content-MD5 trailer. -# -*- encoding: binary -*- require 'digest/md5' $stdout.sync = $stderr.sync = true $stdout.binmode diff --git a/t/bin/unused_listen b/t/bin/unused_listen index 95f3249..b638f54 100755 --- a/t/bin/unused_listen +++ b/t/bin/unused_listen @@ -1,4 +1,5 @@ #!/usr/bin/env ruby +# -*- encoding: binary -*- # this is to remain compatible with the unused_port function in the # Unicorn test/test_helper.rb file require 'socket' diff --git a/t/bin/utee b/t/bin/utee index e48f307..7b61fea 100755 --- a/t/bin/utee +++ b/t/bin/utee @@ -1,8 +1,8 @@ #!/usr/bin/env ruby +# -*- encoding: binary -*- # tee(1) as distributed on most(all?) systems is buffered in luserspace # this only does unbuffered writes (with line-buffered input) to make # test output appear in real-time -# -*- encoding: binary -*- $stdin.binmode $stdout.binmode fp = File.open(ARGV.shift, "wb") -- cgit v1.2.3-24-ge0c7