From 84081b4508c51d04a4a9019fcffe0e034b0b2d39 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Sep 2009 15:10:04 -0700 Subject: "encoding: binary" comments for all sources (1.9) This ensures any string literals that pop up in *our* code will just be a bag of bytes. This shouldn't affect/fix/break existing apps in most cases, but most constants will always have the "correct" encoding (none!) to be consistent with HTTP/socket expectations. Since this comment affects things only on a per-source basis, it won't affect existing apps with the exception of strings we pass to the Rack application. This will eventually allow us to get rid of that Unicorn::Z constant, too. --- lib/unicorn/launcher.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/unicorn/launcher.rb') diff --git a/lib/unicorn/launcher.rb b/lib/unicorn/launcher.rb index 5ebc271..1229b84 100644 --- a/lib/unicorn/launcher.rb +++ b/lib/unicorn/launcher.rb @@ -1,4 +1,10 @@ +# -*- encoding: binary -*- + $stdin.sync = $stdout.sync = $stderr.sync = true +$stdin.binmode +$stdout.binmode +$stderr.binmode + require 'unicorn' class Unicorn::Launcher -- cgit v1.2.3-24-ge0c7