[macruby-changes] [4164] MacRuby/trunk/test_vm/encoding.rb

source_changes at macosforge.org source_changes at macosforge.org
Wed May 26 13:30:36 PDT 2010


Revision: 4164
          http://trac.macosforge.org/projects/ruby/changeset/4164
Author:   eloy.de.enige at gmail.com
Date:     2010-05-26 13:30:35 -0700 (Wed, 26 May 2010)
Log Message:
-----------
Add failing test about Array#pack returning a string with the wrong encoding.

Modified Paths:
--------------
    MacRuby/trunk/test_vm/encoding.rb

Modified: MacRuby/trunk/test_vm/encoding.rb
===================================================================
--- MacRuby/trunk/test_vm/encoding.rb	2010-05-26 20:30:25 UTC (rev 4163)
+++ MacRuby/trunk/test_vm/encoding.rb	2010-05-26 20:30:35 UTC (rev 4164)
@@ -1,3 +1,5 @@
 assert "US-ASCII", "File.open('../Rakefile', 'r:US-ASCII') {|f| puts f.read.encoding.name }"
 
 assert ":ok", "puts ':ok'.encode('US-ASCII')"
+
+assert "true", "p [].pack('U*').encoding.name == 'UTF-8'"
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100526/d1603211/attachment.html>


More information about the macruby-changes mailing list