Skip to content
This repository
Browse code

Add explicit encoding to kernel files.

  • Loading branch information...
commit 948dd3c32d9e8d09af70604525f6884e01d11126 1 parent 47e15f4
Brian Shirai authored

Showing 272 changed files with 545 additions and 1 deletion. Show diff stats Hide diff stats

  1. 2  kernel/alpha.rb
  2. 2  kernel/bootstrap/alias.rb
  3. 2  kernel/bootstrap/array.rb
  4. 2  kernel/bootstrap/array18.rb
  5. 2  kernel/bootstrap/array19.rb
  6. 2  kernel/bootstrap/atomic.rb
  7. 2  kernel/bootstrap/basicobject.rb
  8. 2  kernel/bootstrap/bignum.rb
  9. 2  kernel/bootstrap/block_environment.rb
  10. 2  kernel/bootstrap/bytearray.rb
  11. 2  kernel/bootstrap/channel.rb
  12. 2  kernel/bootstrap/class.rb
  13. 2  kernel/bootstrap/compactlookuptable.rb
  14. 2  kernel/bootstrap/compiled_method.rb
  15. 2  kernel/bootstrap/configuration.rb
  16. 2  kernel/bootstrap/dir.rb
  17. 2  kernel/bootstrap/encoding.rb
  18. 2  kernel/bootstrap/exception.rb
  19. 2  kernel/bootstrap/executable.rb
  20. 2  kernel/bootstrap/false.rb
  21. 2  kernel/bootstrap/fixnum.rb
  22. 2  kernel/bootstrap/gc.rb
  23. 2  kernel/bootstrap/io.rb
  24. 2  kernel/bootstrap/iseq.rb
  25. 2  kernel/bootstrap/kernel.rb
  26. 2  kernel/bootstrap/kernel18.rb
  27. 2  kernel/bootstrap/kernel19.rb
  28. 2  kernel/bootstrap/lookuptable.rb
  29. 2  kernel/bootstrap/method_table.rb
  30. 2  kernel/bootstrap/nil.rb
  31. 2  kernel/bootstrap/object.rb
  32. 2  kernel/bootstrap/object18.rb
  33. 2  kernel/bootstrap/proc.rb
  34. 2  kernel/bootstrap/process.rb
  35. 2  kernel/bootstrap/regexp.rb
  36. 2  kernel/bootstrap/rubinius.rb
  37. 2  kernel/bootstrap/rubinius18.rb
  38. 2  kernel/bootstrap/rubinius19.rb
  39. 2  kernel/bootstrap/static_scope.rb
  40. 2  kernel/bootstrap/string.rb
  41. 2  kernel/bootstrap/string19.rb
  42. 2  kernel/bootstrap/symbol.rb
  43. 2  kernel/bootstrap/symbol19.rb
  44. 2  kernel/bootstrap/thread.rb
  45. 2  kernel/bootstrap/thread18.rb
  46. 2  kernel/bootstrap/thread19.rb
  47. 2  kernel/bootstrap/thunk.rb
  48. 2  kernel/bootstrap/time.rb
  49. 2  kernel/bootstrap/true.rb
  50. 2  kernel/bootstrap/tuple.rb
  51. 2  kernel/bootstrap/type.rb
  52. 2  kernel/bootstrap/variable_scope.rb
  53. 2  kernel/bootstrap/vm.rb
  54. 2  kernel/bootstrap/weakref.rb
  55. 2  kernel/common/argf.rb
  56. 2  kernel/common/argf18.rb
  57. 2  kernel/common/argf19.rb
  58. 2  kernel/common/array.rb
  59. 2  kernel/common/array18.rb
  60. 2  kernel/common/array19.rb
  61. 2  kernel/common/autoload.rb
  62. 2  kernel/common/autoload18.rb
  63. 2  kernel/common/autoload19.rb
  64. 2  kernel/common/backtrace.rb
  65. 2  kernel/common/basicobject.rb
  66. 2  kernel/common/bignum.rb
  67. 2  kernel/common/bignum18.rb
  68. 2  kernel/common/bignum19.rb
  69. 2  kernel/common/binding.rb
  70. 2  kernel/common/block_environment.rb
  71. 2  kernel/common/bytearray.rb
  72. 2  kernel/common/bytearray18.rb
  73. 2  kernel/common/bytearray19.rb
  74. 2  kernel/common/capi.rb
  75. 2  kernel/common/channel.rb
  76. 2  kernel/common/class.rb
  77. 2  kernel/common/class18.rb
  78. 2  kernel/common/class19.rb
  79. 2  kernel/common/codeloader.rb
  80. 2  kernel/common/codeloader18.rb
  81. 2  kernel/common/codeloader19.rb
  82. 2  kernel/common/comparable.rb
  83. 2  kernel/common/comparable18.rb
  84. 2  kernel/common/comparable19.rb
  85. 2  kernel/common/compiled_method.rb
  86. 2  kernel/common/complex.rb
  87. 2  kernel/common/complexifier.rb
  88. 2  kernel/common/continuation.rb
  89. 2  kernel/common/ctype.rb
  90. 2  kernel/common/delegated_method.rb
  91. 2  kernel/common/dir.rb
  92. 2  kernel/common/dir18.rb
  93. 2  kernel/common/dir19.rb
  94. 2  kernel/common/dir_glob.rb
  95. 2  kernel/common/encoding.rb
  96. 2  kernel/common/enumerable.rb
  97. 2  kernel/common/enumerable18.rb
  98. 2  kernel/common/enumerable19.rb
  99. 2  kernel/common/enumerator.rb
  100. 2  kernel/common/enumerator18.rb
  101. 2  kernel/common/enumerator19.rb
  102. 2  kernel/common/env.rb
  103. 2  kernel/common/errno.rb
  104. 2  kernel/common/eval.rb
  105. 2  kernel/common/eval18.rb
  106. 2  kernel/common/eval19.rb
  107. 2  kernel/common/exception.rb
  108. 2  kernel/common/exception18.rb
  109. 2  kernel/common/exception19.rb
  110. 2  kernel/common/executable.rb
  111. 2  kernel/common/false.rb
  112. 2  kernel/common/fiber.rb
  113. 2  kernel/common/fiber19.rb
  114. 2  kernel/common/file.rb
  115. 2  kernel/common/file19.rb
  116. 2  kernel/common/filetest.rb
  117. 2  kernel/common/fixnum.rb
  118. 2  kernel/common/fixnum18.rb
  119. 2  kernel/common/fixnum19.rb
  120. 2  kernel/common/float.rb
  121. 2  kernel/common/float18.rb
  122. 2  kernel/common/float19.rb
  123. 4  kernel/common/gc19.rb
  124. 2  kernel/common/global.rb
  125. 2  kernel/common/hash18.rb
  126. 2  kernel/common/hash19.rb
  127. 2  kernel/common/hash_hamt.rb
  128. 2  kernel/common/hook.rb
  129. 2  kernel/common/identitymap.rb
  130. 2  kernel/common/immediate.rb
  131. 2  kernel/common/integer.rb
  132. 2  kernel/common/integer18.rb
  133. 2  kernel/common/integer19.rb
  134. 2  kernel/common/io.rb
  135. 2  kernel/common/io18.rb
  136. 2  kernel/common/io19.rb
  137. 2  kernel/common/kernel.rb
  138. 2  kernel/common/kernel18.rb
  139. 2  kernel/common/kernel19.rb
  140. 2  kernel/common/loadedfeatures.rb
  141. 2  kernel/common/location.rb
  142. 2  kernel/common/lookuptable.rb
  143. 2  kernel/common/lrucache.rb
  144. 2  kernel/common/main.rb
  145. 2  kernel/common/marshal.rb
  146. 2  kernel/common/marshal18.rb
  147. 2  kernel/common/marshal19.rb
  148. 2  kernel/common/math.rb
  149. 2  kernel/common/math18.rb
  150. 2  kernel/common/math19.rb
  151. 2  kernel/common/method.rb
  152. 2  kernel/common/method18.rb
  153. 2  kernel/common/method19.rb
  154. 2  kernel/common/method_table.rb
  155. 2  kernel/common/module.rb
  156. 2  kernel/common/module18.rb
  157. 2  kernel/common/module19.rb
  158. 2  kernel/common/native_method.rb
  159. 2  kernel/common/nil.rb
  160. 2  kernel/common/nil19.rb
  161. 2  kernel/common/numeric.rb
  162. 2  kernel/common/numeric18.rb
  163. 2  kernel/common/numeric19.rb
  164. 2  kernel/common/objectspace.rb
  165. 2  kernel/common/precision.rb
  166. 2  kernel/common/proc.rb
  167. 2  kernel/common/proc18.rb
  168. 2  kernel/common/proc19.rb
  169. 2  kernel/common/process.rb
  170. 2  kernel/common/random.rb
  171. 2  kernel/common/random19.rb
  172. 2  kernel/common/range.rb
  173. 2  kernel/common/range19.rb
  174. 2  kernel/common/rational.rb
  175. 2  kernel/common/rationalizer.rb
  176. 2  kernel/common/regexp.rb
  177. 2  kernel/common/regexp18.rb
  178. 2  kernel/common/regexp19.rb
  179. 2  kernel/common/signal.rb
  180. 2  kernel/common/sprinter.rb
  181. 2  kernel/common/static_scope.rb
  182. 2  kernel/common/static_scope18.rb
  183. 2  kernel/common/static_scope19.rb
  184. 2  kernel/common/string.rb
  185. 2  kernel/common/string18.rb
  186. 2  kernel/common/string19.rb
  187. 2  kernel/common/struct.rb
  188. 2  kernel/common/struct18.rb
  189. 2  kernel/common/struct19.rb
  190. 2  kernel/common/symbol.rb
  191. 2  kernel/common/symbol18.rb
  192. 2  kernel/common/symbol19.rb
  193. 2  kernel/common/thread.rb
  194. 2  kernel/common/thread_group.rb
  195. 2  kernel/common/throw_catch.rb
  196. 2  kernel/common/throw_catch18.rb
  197. 2  kernel/common/throw_catch19.rb
  198. 2  kernel/common/time.rb
  199. 2  kernel/common/time18.rb
  200. 2  kernel/common/time19.rb
  201. 2  kernel/common/true.rb
  202. 2  kernel/common/tuple.rb
  203. 2  kernel/common/type.rb
  204. 2  kernel/common/type18.rb
  205. 2  kernel/common/type19.rb
  206. 2  kernel/common/undefined.rb
  207. 2  kernel/common/variable_scope.rb
  208. 2  kernel/delta/agent.rb
  209. 2  kernel/delta/class.rb
  210. 2  kernel/delta/codeloader.rb
  211. 2  kernel/delta/ctype.rb
  212. 2  kernel/delta/exception.rb
  213. 2  kernel/delta/ffi.rb
  214. 2  kernel/delta/file.rb
  215. 2  kernel/delta/filetest.rb
  216. 2  kernel/delta/kernel.rb
  217. 2  kernel/delta/kernel18.rb
  218. 2  kernel/delta/kernel19.rb
  219. 2  kernel/delta/math.rb
  220. 2  kernel/delta/math19.rb
  221. 2  kernel/delta/module.rb
  222. 2  kernel/delta/options.rb
  223. 2  kernel/delta/pack.rb
  224. 2  kernel/delta/pack18.rb
  225. 2  kernel/delta/pack19.rb
  226. 2  kernel/delta/rubinius.rb
  227. 2  kernel/delta/rubinius18.rb
  228. 2  kernel/delta/rubinius19.rb
  229. 2  kernel/delta/ruby_constants.rb
  230. 2  kernel/delta/ruby_constants18.rb
  231. 2  kernel/delta/ruby_constants19.rb
  232. 2  kernel/delta/ruby_constants20.rb
  233. 2  kernel/delta/signal.rb
  234. 2  kernel/delta/stats.rb
  235. 2  kernel/delta/struct.rb
  236. 2  kernel/delta/thread.rb
  237. 2  kernel/loader.rb
  238. 2  kernel/platform/env.rb
  239. 2  kernel/platform/ffi.rb
  240. 2  kernel/platform/file.rb
  241. 2  kernel/platform/library.rb
  242. 2  kernel/platform/math.rb
  243. 2  kernel/platform/math19.rb
  244. 2  kernel/platform/pointer.rb
  245. 2  kernel/platform/pointer_accessors.rb
  246. 2  kernel/platform/posix.rb
  247. 2  kernel/platform/struct.rb
  248. 2  lib/compiler/ast.rb
  249. 2  lib/compiler/ast/constants.rb
  250. 2  lib/compiler/ast/control_flow.rb
  251. 2  lib/compiler/ast/data.rb
  252. 2  lib/compiler/ast/definitions.rb
  253. 2  lib/compiler/ast/exceptions.rb
  254. 2  lib/compiler/ast/file.rb
  255. 2  lib/compiler/ast/grapher.rb
  256. 2  lib/compiler/ast/literals.rb
  257. 2  lib/compiler/ast/node.rb
  258. 2  lib/compiler/ast/operators.rb
  259. 2  lib/compiler/ast/self.rb
  260. 2  lib/compiler/ast/sends.rb
  261. 2  lib/compiler/ast/transforms.rb
  262. 2  lib/compiler/ast/values.rb
  263. 2  lib/compiler/ast/variables.rb
  264. 2  lib/compiler/compiled_file.rb
  265. 2  lib/compiler/compiler.rb
  266. 2  lib/compiler/evaluator.rb
  267. 2  lib/compiler/generator.rb
  268. 2  lib/compiler/iseq.rb
  269. 2  lib/compiler/locals.rb
  270. 2  lib/compiler/printers.rb
  271. 2  lib/compiler/runtime.rb
  272. 2  lib/compiler/stages.rb
2  kernel/alpha.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 #
2 4
 # This is the beginning of loading Ruby code. At this point, the VM
3 5
 # is bootstrapped and the fundamental data structures, primitive
2  kernel/bootstrap/alias.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Alias
3 5
     attr_reader :original_exec
2  kernel/bootstrap/array.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Array
2 4
   attr_accessor :total
3 5
   attr_accessor :tuple
2  kernel/bootstrap/array18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Array
2 4
   # Creates a new Array from the return values of passing
3 5
   # each element in self to the supplied block.
2  kernel/bootstrap/array19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Array
2 4
   # Creates a new Array from the return values of passing
3 5
   # each element in self to the supplied block.
2  kernel/bootstrap/atomic.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class AtomicReference
3 5
     def initialize(val=nil)
2  kernel/bootstrap/basicobject.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class BasicObject
2 4
   def initialize
3 5
     # do nothing
2  kernel/bootstrap/bignum.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Bignum < Integer
2 4
 
3 5
   # unary operators
2  kernel/bootstrap/block_environment.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class BlockEnvironment
3 5
     def self.allocate
2  kernel/bootstrap/bytearray.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class ByteArray
3 5
     def self.allocate
2  kernel/bootstrap/channel.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Channel is a FIFO, thread-aware value passing class that can hold any number
3 5
 # of objects similar to Queue.  Use #send to add objects to the channel and
2  kernel/bootstrap/class.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Class
2 4
   def self.allocate
3 5
     Rubinius.primitive :class_s_allocate
2  kernel/bootstrap/compactlookuptable.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class CompactLookupTable
3 5
     def self.allocate
2  kernel/bootstrap/compiled_method.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class CompiledMethod < Executable
3 5
 
2  kernel/bootstrap/configuration.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Configuration
3 5
     def initialize
2  kernel/bootstrap/dir.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Dir
2 4
   def self.allocate
3 5
     Rubinius.primitive :dir_allocate
2  kernel/bootstrap/encoding.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 # This stupidity is necessary to counter the stupidity of checking
2 4
 # 1.9 syntax support by checking if Encoding is defined. Who said
3 5
 # two stupids don't make a smart.
2  kernel/bootstrap/exception.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Exception
2 4
   def capture_backtrace!(offset)
3 5
     # replaced in delta with a real implementation
2  kernel/bootstrap/executable.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Executable
3 5
     attr_accessor :serial
2  kernel/bootstrap/false.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class FalseClass
2 4
   def &(other)
3 5
     false
2  kernel/bootstrap/fixnum.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Fixnum < Integer
2 4
 
3 5
   def self.===(obj)
2  kernel/bootstrap/gc.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module GC
2 4
   def self.start
3 5
     run(false)
2  kernel/bootstrap/io.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class IO
2 4
 
3 5
   class InternalBuffer
2  kernel/bootstrap/iseq.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class InstructionSequence
3 5
     def initialize(size)
2  kernel/bootstrap/kernel.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Kernel
2 4
   def equal?(other)
3 5
     Rubinius.primitive :object_equal
2  kernel/bootstrap/kernel18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Kernel
2 4
   def equal?(other)
3 5
     Rubinius.primitive :object_equal
2  kernel/bootstrap/kernel19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 # TODO: Temporary! Object should find these methods in BasicObject
2 4
 # but we fake that until method lookup is fixed for 1.9.
3 5
 module Kernel
2  kernel/bootstrap/lookuptable.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # A LookupTable is similar to a Hash in that keys are used to set and
3 5
 # reference values. However, unlike Hash, whether a key matches an
2  kernel/bootstrap/method_table.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 
2 4
 ##
3 5
 # Method table associates symbols (names) with methods (executables). Each
2  kernel/bootstrap/nil.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class NilClass
2 4
   def &(other)
3 5
     false
2  kernel/bootstrap/object.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Object
2 4
   def __fixnum__
3 5
     Rubinius.primitive :object_is_fixnum
2  kernel/bootstrap/object18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Object
2 4
   def initialize
3 5
   end
2  kernel/bootstrap/proc.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Proc
2 4
   def self.allocate
3 5
     Rubinius.primitive :proc_allocate
2  kernel/bootstrap/process.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Process
2 4
   def self.perform_fork
3 5
     Rubinius.primitive :vm_fork
2  kernel/bootstrap/regexp.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Regexp
2 4
 
3 5
   def self.allocate
2  kernel/bootstrap/rubinius.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   # Ruby 1.8 returns strings for method and constant names
3 5
   def self.convert_to_names(list)
2  kernel/bootstrap/rubinius18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   # Ruby 1.8 returns strings for method and constant names
3 5
   def self.convert_to_names(list)
2  kernel/bootstrap/rubinius19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   def self.convert_to_names(list)
3 5
     list
2  kernel/bootstrap/static_scope.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class StaticScope
3 5
     def self.of_sender
2  kernel/bootstrap/string.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class String
2 4
   attr_reader :num_bytes
3 5
   attr_reader_specific :num_bytes, :bytesize
2  kernel/bootstrap/string19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class String
2 4
   attr_writer :encoding
3 5
   attr_writer :ascii_only
2  kernel/bootstrap/symbol.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Symbol
2 4
   def self.===(obj)
3 5
     Rubinius.primitive :symbol_s_eqq
2  kernel/bootstrap/symbol19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Symbol
2 4
   def encoding
3 5
     Rubinius.primitive :symbol_encoding
2  kernel/bootstrap/thread.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Thread
2 4
 
3 5
   def self.current
2  kernel/bootstrap/thread18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Thread
2 4
   def self.start(*args)
3 5
     thr = Rubinius.invoke_primitive :thread_allocate, self
2  kernel/bootstrap/thread19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Thread
2 4
   def self.start(*args)
3 5
     raise ArgumentError.new("no block passed to Thread.start") unless block_given?
2  kernel/bootstrap/thunk.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Thunk
3 5
     def self.new(value)
2  kernel/bootstrap/time.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Time
2 4
   def self.now
3 5
     Rubinius.primitive :time_s_now
2  kernel/bootstrap/true.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class TrueClass
2 4
   def &(other)
3 5
     !!other
2  kernel/bootstrap/tuple.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Tuple
3 5
 
2  kernel/bootstrap/type.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 # The Type module provides facilities for accessing various "type" related
2 4
 # data about an object, as well as providing type coercion methods. These
3 5
 # facilities are independent of the object and thus are more robust in the
2  kernel/bootstrap/variable_scope.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class VariableScope
3 5
     def self.of_sender
2  kernel/bootstrap/vm.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Rubinius::VM
2 4
 
3 5
   # Get an Array of Rubinius::Location objects representing the current
2  kernel/bootstrap/weakref.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class WeakRef
2 4
 
3 5
   class RefError < RuntimeError; end
2  kernel/common/argf.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 
2 4
 
3 5
 module Rubinius
2  kernel/common/argf18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class ARGFClass
3 5
 
2  kernel/common/argf19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class ARGFClass
3 5
 
2  kernel/common/array.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Arrays are ordered, integer-indexed collections of any object.  Array
3 5
 # indexing starts at 0, as in C or Java.  A negative index is assumed to be
2  kernel/common/array18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Array
2 4
   def set_index(index, ent, fin=undefined)
3 5
     Rubinius.primitive :array_aset
2  kernel/common/array19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Array
2 4
   # Try to convert obj into an array, using to_ary method.
3 5
   # Returns converted array or nil if obj cannot be converted
2  kernel/common/autoload.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Used to implement Module#autoload.
3 5
 
2  kernel/common/autoload18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Autoload
2 4
   ##
3 5
   # When any code that finds a constant sees an instance of Autoload as its match,
2  kernel/common/autoload19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Autoload
2 4
   ##
3 5
   # When any code that finds a constant sees an instance of Autoload as its match,
2  kernel/common/backtrace.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Contains all logic for gathering and displaying backtraces.
3 5
 
2  kernel/common/basicobject.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class BasicObject
2 4
   def method_missing(meth, *args)
3 5
     Kernel.raise NoMethodError, "Unable to send '#{meth}' on instance of BasicObject"
2  kernel/common/bignum.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Bignum objects hold integers outside the range of Fixnum. Bignum objects are
3 5
 # created automatically when integer calculations would otherwise overflow a
2  kernel/common/bignum18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Bignum < Integer
2 4
   alias_method :quo, :fdiv
3 5
 
2  kernel/common/bignum19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Bignum < Integer
2 4
   def **(o)
3 5
     Rubinius.primitive :bignum_pow
2  kernel/common/binding.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Objects of class Binding encapsulate the execution context at some
3 5
 # particular place in the code and retain this context for future use. The
2  kernel/common/block_environment.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Describes the environment a block was created in.  BlockEnvironment is used
3 5
 # to create a BlockContext.
2  kernel/common/bytearray.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # An array of bytes, used as a low-level data store for implementing various
3 5
 # other classes.
2  kernel/common/bytearray18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class ByteArray
3 5
     alias_method :character_at_index, :[]
2  kernel/common/bytearray19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class ByteArray
3 5
     # TODO: encoding
2  kernel/common/capi.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
 
3 5
   # CAPI contains utility methods used by capi.
2  kernel/common/channel.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # A communication mechanism based on pi-calculus channels used primarily to
3 5
 # communicate between ruby and the VM about events.
2  kernel/common/class.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Classes in Ruby are first-class objects, each is an instance of
3 5
 # class Class.
2  kernel/common/class18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Class
2 4
   ##
3 5
   # Returns the Class object that this Class inherits from. Included Modules
2  kernel/common/class19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Class
2 4
   ##
3 5
   # Returns the Class object that this Class inherits from. Included Modules
2  kernel/common/codeloader.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 # CodeLoader implements the logic for Kernel#load and Kernel#require. Only the
2 4
 # implementation-agnostic behavior is provided in this file. That includes
3 5
 # resolving files according to $LOAD_PATH and updating $LOADED_FEATURES.
2  kernel/common/codeloader18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class CodeLoader
3 5
 
2  kernel/common/codeloader19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class CodeLoader
3 5
 
2  kernel/common/comparable.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # The Comparable mixin is used by classes whose objects may be ordered. The
3 5
 # class must define the <tt><=></tt> (spaceship) operator, which compares the
2  kernel/common/comparable18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Comparable
2 4
 
3 5
   # Compares two objects based on the receiver's <code><=></code>
2  kernel/common/comparable19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Comparable
2 4
 
3 5
   # Compares two objects based on the receiver's <code><=></code>
2  kernel/common/compiled_method.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class CompiledMethod < Executable
3 5
 
2  kernel/common/complex.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 #
2 4
 #   complex.rb -
3 5
 #   	$Release Version: 0.5 $
2  kernel/common/complexifier.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class String
2 4
   class Complexifier
3 5
     SPACE = Rationalizer::SPACE
2  kernel/common/continuation.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Continuation objects are generated by Kernel#callcc. They hold a return
3 5
 # address and execution context, allowing a nonlocal return to the end of the
2  kernel/common/ctype.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Mixin containing byte classification methods.
3 5
 #--
2  kernel/common/delegated_method.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # DelegatedMethod is used to implement Module#define_method
3 5
 
2  kernel/common/dir.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Dir
2 4
   include Enumerable
3 5
 
2  kernel/common/dir18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Dir
2 4
   def self.open(path)
3 5
     dir = new path
2  kernel/common/dir19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Dir
2 4
 
3 5
   # This seems silly, I know. But we do this to make Dir more resistent to people
2  kernel/common/dir_glob.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Dir
2 4
   module Glob
3 5
     class Node
2  kernel/common/encoding.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class EncodingError < StandardError
2 4
 end
3 5
 
2  kernel/common/enumerable.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 #  The Enumerable mixin provides collection classes with  several traversal
3 5
 #  and searching methods, and with the ability to sort. The class must provide
2  kernel/common/enumerable18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Enumerable
2 4
   ##
3 5
   # :call-seq:
2  kernel/common/enumerable19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Enumerable
2 4
   ##
3 5
   # :call-seq:
2  kernel/common/enumerator.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 # A class which provides a method `each' to be used as an Enumerable
2 4
 # object.
3 5
 
2  kernel/common/enumerator18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Enumerable
2 4
   class Enumerator
3 5
     # Returns the next object in the enumerator
2  kernel/common/enumerator19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 Enumerator = Enumerable::Enumerator
2 4
 
3 5
 module Enumerable
2  kernel/common/env.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Interface to process environment variables.
3 5
 
2  kernel/common/errno.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Interface to the C errno integer.
3 5
 
2  kernel/common/eval.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Kernel
2 4
 
3 5
   # Names of local variables at point of call (including evaled)
2  kernel/common/eval18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Kernel
2 4
   ##
3 5
   # :call-seq:
2  kernel/common/eval19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class BasicObject
2 4
   ##
3 5
   # :call-seq:
2  kernel/common/exception.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Exception
2 4
 
3 5
   attr_accessor :locations
2  kernel/common/exception18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Exception
2 4
   alias_method :to_str, :message
3 5
 
2  kernel/common/exception19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Exception
2 4
   def ==(other)
3 5
     other.kind_of?(Exception) &&
2  kernel/common/executable.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Parent class of everything that can live in a MethodTable.
3 5
 #
2  kernel/common/false.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class FalseClass
2 4
   alias_method :|, :^
3 5
 
2  kernel/common/fiber.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Fiber
3 5
     def self.create(size, callable)
2  kernel/common/fiber19.rb
... ...
@@ -1 +1,3 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 Fiber = Rubinius::Fiber
2  kernel/common/file.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module FFI::Platform::POSIX
2 4
   #--
3 5
   # Internal class for accessing timevals
2  kernel/common/file19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class File
2 4
   def self.path(obj)
3 5
     return obj.to_path if obj.respond_to? :to_path
2  kernel/common/filetest.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module FileTest
2 4
   def blockdev?(path)
3 5
     File.blockdev? path
2  kernel/common/fixnum.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 #--
3 5
 # NOTE do not define to_sym or id2name. It's been deprecated for 5 years and
2  kernel/common/fixnum18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Fixnum < Integer
2 4
   # Must be it's own method, so that super calls the correct method
3 5
   # on Numeric
2  kernel/common/fixnum19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Fixnum < Integer
2 4
   def imaginary
3 5
     0
2  kernel/common/float.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Float < Numeric
2 4
 
3 5
   include Precision
2  kernel/common/float18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Float
2 4
   def **(other)
3 5
     Rubinius.primitive :float_pow
2  kernel/common/float19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Float
2 4
   INFINITY = 1.0 / 0.0
3 5
   NAN = 0.0 / 0.0
4  kernel/common/gc19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module GC
2 4
   def self.stat
3 5
     @agent ||= begin
@@ -37,4 +39,4 @@ def self.stat
37 39
     
38 40
     stats
39 41
   end
40  
-end
  42
+end
2  kernel/common/global.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Stores global variables and global variable aliases.
3 5
 
2  kernel/common/hash18.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 class Hash
2 4
 
3 5
   include Enumerable
2  kernel/common/hash19.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 unless Rubinius::Config['hash.hamt']
2 4
 class Hash
3 5
   include Enumerable
2  kernel/common/hash_hamt.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 if Rubinius::Config['hash.hamt']
2 4
 class Hash
3 5
   include Enumerable
2  kernel/common/hook.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
   class Hook
3 5
     def initialize
2  kernel/common/identitymap.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 module Rubinius
2 4
 
3 5
   # IdentityMap is customized for uniquely storing elements from an Array to
2  kernel/common/immediate.rb
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1 3
 ##
2 4
 # Mixin used to identify classes which have no memory storage.
3 5
 
2  kernel/common/integer.rb
<
... ...
@@ -1,3 +1,5 @@
  1
+# -*- encoding: us-ascii -*-
  2
+
1