Revision: 169 http://trac.macosforge.org/projects/ruby/changeset/169 Author: lsansonetti@apple.com Date: 2008-04-23 19:54:51 -0700 (Wed, 23 Apr 2008) Log Message: ----------- disabling pack calls for now Modified Paths: -------------- MacRuby/trunk/tool/compile_prelude.rb Modified: MacRuby/trunk/tool/compile_prelude.rb =================================================================== --- MacRuby/trunk/tool/compile_prelude.rb 2008-04-24 02:53:42 UTC (rev 168) +++ MacRuby/trunk/tool/compile_prelude.rb 2008-04-24 02:54:51 UTC (rev 169) @@ -16,8 +16,11 @@ "\n" => '\n', } +=begin +# FIXME MacRuby currently doesn't support this! 0x00.upto(0x1f) {|ch| C_ESC[[ch].pack("C")] ||= "\\%03o" % ch } 0x7f.upto(0xff) {|ch| C_ESC[[ch].pack("C")] = "\\%03o" % ch } +=end C_ESC_PAT = Regexp.union(*C_ESC.keys) def c_esc(str)