about summary refs log tree commit homepage
path: root/t/bin
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-02-08 15:09:11 -0800
committerEric Wong <normalperson@yhbt.net>2010-02-08 15:10:11 -0800
commit71b8fff3d8d171c9770bb8c69767341c10d9c962 (patch)
tree3784759ddca03e720e05a4c0cb4dbe4f29e47e61 /t/bin
parent9e01161030e68f0740e7821791fef4e38f828f1a (diff)
downloadrainbows-71b8fff3d8d171c9770bb8c69767341c10d9c962.tar.gz
Ruby 1.9 will complain otherwise
Diffstat (limited to 't/bin')
-rwxr-xr-xt/bin/content-md5-put2
-rwxr-xr-xt/bin/unused_listen1
-rwxr-xr-xt/bin/utee2
3 files changed, 3 insertions, 2 deletions
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")