Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add magic comment to declare the source encoding

MRI r37485 changed the default source encoding.
  • Loading branch information...
commit 4e25d326eeda905bdfde590fee71903d73ad060b 1 parent 4c8fac6
@nurse nurse authored
Showing with 29 additions and 0 deletions.
  1. +1 −0  core/encoding/converter/primitive_errinfo_spec.rb
  2. +1 −0  core/encoding/converter/putback_spec.rb
  3. +1 −0  core/encoding/invalid_byte_sequence_error/error_bytes_spec.rb
  4. +1 −0  core/file/expand_path_spec.rb
  5. +1 −0  core/io/write_spec.rb
  6. +1 −0  core/marshal/dump_spec.rb
  7. +1 −0  core/random/bytes_spec.rb
  8. +1 −0  core/string/count_spec.rb
  9. +1 −0  core/string/delete_spec.rb
  10. +1 −0  core/string/encoding_spec.rb
  11. +1 −0  core/string/shared/succ.rb
  12. +1 −0  core/string/squeeze_spec.rb
  13. +1 −0  core/symbol/casecmp_spec.rb
  14. +1 −0  core/time/_dump_spec.rb
  15. +1 −0  language/encoding_spec.rb
  16. +1 −0  language/regexp/encoding_spec.rb
  17. +1 −0  language/regexp/escapes_spec.rb
  18. +1 −0  library/digest/md5/shared/constants.rb
  19. +1 −0  library/digest/sha1/shared/constants.rb
  20. +1 −0  library/digest/sha256/shared/constants.rb
  21. +1 −0  library/digest/sha384/shared/constants.rb
  22. +1 −0  library/digest/sha512/shared/constants.rb
  23. +1 −0  library/openssl/shared/constants.rb
  24. +1 −0  library/socket/basicsocket/recv_spec.rb
  25. +1 −0  library/socket/socket/gethostbyname_spec.rb
  26. +1 −0  library/zlib/deflate/deflate_spec.rb
  27. +1 −0  library/zlib/deflate/set_dictionary_spec.rb
  28. +1 −0  library/zlib/inflate/append_spec.rb
  29. +1 −0  library/zlib/inflate/inflate_spec.rb
View
1  core/encoding/converter/primitive_errinfo_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
with_feature :encoding do
View
1  core/encoding/converter/putback_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
with_feature :encoding do
View
1  core/encoding/invalid_byte_sequence_error/error_bytes_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../fixtures/classes', __FILE__)
with_feature :encoding do
View
1  core/file/expand_path_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/common', __FILE__)
View
1  core/io/write_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
require File.expand_path('../shared/write', __FILE__)
View
1  core/marshal/dump_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/marshal_data', __FILE__)
View
1  core/random/bytes_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "1.9" do
View
1  core/string/count_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
View
1  core/string/delete_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
View
1  core/string/encoding_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/iso-8859-9-encoding', __FILE__)
View
1  core/string/shared/succ.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
describe :string_succ, :shared => true do
it "returns an empty string for empty strings" do
"".send(@method).should == ""
View
1  core/string/squeeze_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes.rb', __FILE__)
View
1  core/symbol/casecmp_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
ruby_version_is "1.9" do
View
1  core/time/_dump_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/methods', __FILE__)
View
1  language/encoding_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../spec_helper', __FILE__)
require File.expand_path('../fixtures/coding_us_ascii', __FILE__)
require File.expand_path('../fixtures/coding_utf_8', __FILE__)
View
1  language/regexp/encoding_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
1  language/regexp/escapes_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
1  library/digest/md5/shared/constants.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'digest/md5'
module MD5Constants
View
1  library/digest/sha1/shared/constants.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'digest/sha1'
module SHA1Constants
View
1  library/digest/sha256/shared/constants.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'digest/sha2'
module SHA256Constants
View
1  library/digest/sha384/shared/constants.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'digest/sha2'
module SHA384Constants
View
1  library/digest/sha512/shared/constants.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'digest/sha2'
module SHA512Constants
View
1  library/openssl/shared/constants.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
module HMACConstants
Contents = "Ipsum is simply dummy text of the printing and typesetting industry. \nLorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. \nIt has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. \nIt was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
View
1  library/socket/basicsocket/recv_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
1  library/socket/socket/gethostbyname_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../../fixtures/classes', __FILE__)
View
1  library/zlib/deflate/deflate_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'zlib'
require File.expand_path('../../../../spec_helper', __FILE__)
View
1  library/zlib/deflate/set_dictionary_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require 'zlib'
View
1  library/zlib/inflate/append_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require File.expand_path('../../../../spec_helper', __FILE__)
require 'zlib'
View
1  library/zlib/inflate/inflate_spec.rb
@@ -1,3 +1,4 @@
+# -*- coding: US-ASCII -*-
require 'zlib'
require File.expand_path('../../../../spec_helper', __FILE__)
Please sign in to comment.
Something went wrong with that request. Please try again.