]> git.wincent.com - wikitext.git/commit
Ruby 1.9: add magic comments to indicate source file encoding
authorWincent Colaiuta <win@wincent.com>
Fri, 13 Feb 2009 17:28:33 +0000 (18:28 +0100)
committerWincent Colaiuta <win@wincent.com>
Fri, 13 Feb 2009 17:28:33 +0000 (18:28 +0100)
commite12b25324675a01cb50ae1d72ed3ba42dac98e14
tree13ac140fbbef7b13337388e548f21b52daff3d34
parent52a38cf8b2b2b70268755ebe8d1ac2bccb95744a
Ruby 1.9: add magic comments to indicate source file encoding

Lots of these spec files are actually in UTF-8. Ruby 1.8.6
just slurped them in as byte streams so they just worked, but
1.9.1 expects them all to be ASCII and complains when they are
not.

We add these "magic" comments so that Ruby 1.9 knows that the
files are UTF-8-encoded and won't complain.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
spec/external_link_spec.rb
spec/fulltext_spec.rb
spec/img_spec.rb
spec/integration_spec.rb
spec/internal_link_spec.rb
spec/link_encoding_spec.rb
spec/link_sanitizing_spec.rb
spec/nowiki_spec.rb
spec/pre_spec.rb
spec/regressions_spec.rb
spec/wikitext_spec.rb