Permalink
Browse files

Add Magic encoding comment to hexdump.rb

For running under Encoding.default_internal != nil environment, String
literals in this file must be marked as "BINARY" explicitly.

Closes #88.
  • Loading branch information...
1 parent bc3176b commit 822dac768e1cbf9a6dfbf9ca24e8ede9708f51f7 @nahi committed May 6, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/hexdump.rb
View
2 lib/hexdump.rb
@@ -1,3 +1,5 @@
+# encoding: binary
+
# This was written by Arai-san and published at
# http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/31987

0 comments on commit 822dac7

Please sign in to comment.