[macruby-changes] [5072] MacRuby/trunk

source_changes at macosforge.org source_changes at macosforge.org
Wed Dec 22 14:51:36 PST 2010


Revision: 5072
          http://trac.macosforge.org/projects/ruby/changeset/5072
Author:   vincent.isambart at gmail.com
Date:     2010-12-22 14:51:32 -0800 (Wed, 22 Dec 2010)
Log Message:
-----------
added all the ISO-8859 encodings left as some of them are used in rubyspec

Modified Paths:
--------------
    MacRuby/trunk/encoding.c
    MacRuby/trunk/encoding.h
    MacRuby/trunk/spec/frozen/tags/macruby/core/string/encoding_tags.txt

Modified: MacRuby/trunk/encoding.c
===================================================================
--- MacRuby/trunk/encoding.c	2010-12-22 19:10:48 UTC (rev 5071)
+++ MacRuby/trunk/encoding.c	2010-12-22 22:51:32 UTC (rev 5072)
@@ -289,6 +289,20 @@
     add_encoding(ENCODING_UTF32BE,     ENCODING_TYPE_UCNV,    "UTF-32BE",    4, false, false, false, "UCS-4BE", NULL);
     add_encoding(ENCODING_UTF32LE,     ENCODING_TYPE_UCNV,    "UTF-32LE",    4, false, false, true,  "UCS-4LE", NULL);
     add_encoding(ENCODING_ISO8859_1,   ENCODING_TYPE_UCNV,    "ISO-8859-1",  1, true,  true,  false, "ISO8859-1", NULL);
+    add_encoding(ENCODING_ISO8859_2,   ENCODING_TYPE_UCNV,    "ISO-8859-2",  1, true,  true,  false, "ISO8859-2", NULL);
+    add_encoding(ENCODING_ISO8859_3,   ENCODING_TYPE_UCNV,    "ISO-8859-3",  1, true,  true,  false, "ISO8859-3", NULL);
+    add_encoding(ENCODING_ISO8859_4,   ENCODING_TYPE_UCNV,    "ISO-8859-4",  1, true,  true,  false, "ISO8859-4", NULL);
+    add_encoding(ENCODING_ISO8859_5,   ENCODING_TYPE_UCNV,    "ISO-8859-5",  1, true,  true,  false, "ISO8859-5", NULL);
+    add_encoding(ENCODING_ISO8859_6,   ENCODING_TYPE_UCNV,    "ISO-8859-6",  1, true,  true,  false, "ISO8859-6", NULL);
+    add_encoding(ENCODING_ISO8859_7,   ENCODING_TYPE_UCNV,    "ISO-8859-7",  1, true,  true,  false, "ISO8859-7", NULL);
+    add_encoding(ENCODING_ISO8859_8,   ENCODING_TYPE_UCNV,    "ISO-8859-8",  1, true,  true,  false, "ISO8859-8", NULL);
+    add_encoding(ENCODING_ISO8859_9,   ENCODING_TYPE_UCNV,    "ISO-8859-9",  1, true,  true,  false, "ISO8859-9", NULL);
+    add_encoding(ENCODING_ISO8859_10,  ENCODING_TYPE_UCNV,    "ISO-8859-10", 1, true,  true,  false, "ISO8859-10", NULL);
+    add_encoding(ENCODING_ISO8859_11,  ENCODING_TYPE_UCNV,    "ISO-8859-11", 1, true,  true,  false, "ISO8859-11", NULL);
+    add_encoding(ENCODING_ISO8859_13,  ENCODING_TYPE_UCNV,    "ISO-8859-13", 1, true,  true,  false, "ISO8859-13", NULL);
+    add_encoding(ENCODING_ISO8859_14,  ENCODING_TYPE_UCNV,    "ISO-8859-14", 1, true,  true,  false, "ISO8859-14", NULL);
+    add_encoding(ENCODING_ISO8859_15,  ENCODING_TYPE_UCNV,    "ISO-8859-15", 1, true,  true,  false, "ISO8859-15", NULL);
+    add_encoding(ENCODING_ISO8859_16,  ENCODING_TYPE_UCNV,    "ISO-8859-16", 1, true,  true,  false, "ISO8859-16", NULL);
     add_encoding(ENCODING_MACROMAN,    ENCODING_TYPE_UCNV,    "macRoman",    1, true,  true,  false, NULL);
     add_encoding(ENCODING_MACCYRILLIC, ENCODING_TYPE_UCNV,    "macCyrillic", 1, true,  true,  false, NULL);
     add_encoding(ENCODING_BIG5,        ENCODING_TYPE_UCNV,    "Big5",        1, false, true,  false, "CP950", NULL);

Modified: MacRuby/trunk/encoding.h
===================================================================
--- MacRuby/trunk/encoding.h	2010-12-22 19:10:48 UTC (rev 5071)
+++ MacRuby/trunk/encoding.h	2010-12-22 22:51:32 UTC (rev 5072)
@@ -133,6 +133,20 @@
     ENCODING_UTF32BE,
     ENCODING_UTF32LE,
     ENCODING_ISO8859_1,
+    ENCODING_ISO8859_2,
+    ENCODING_ISO8859_3,
+    ENCODING_ISO8859_4,
+    ENCODING_ISO8859_5,
+    ENCODING_ISO8859_6,
+    ENCODING_ISO8859_7,
+    ENCODING_ISO8859_8,
+    ENCODING_ISO8859_9,
+    ENCODING_ISO8859_10,
+    ENCODING_ISO8859_11,
+    ENCODING_ISO8859_13,
+    ENCODING_ISO8859_14,
+    ENCODING_ISO8859_15,
+    ENCODING_ISO8859_16,
     ENCODING_MACROMAN,
     ENCODING_MACCYRILLIC,
     ENCODING_BIG5,

Modified: MacRuby/trunk/spec/frozen/tags/macruby/core/string/encoding_tags.txt
===================================================================
--- MacRuby/trunk/spec/frozen/tags/macruby/core/string/encoding_tags.txt	2010-12-22 19:10:48 UTC (rev 5071)
+++ MacRuby/trunk/spec/frozen/tags/macruby/core/string/encoding_tags.txt	2010-12-22 22:51:32 UTC (rev 5072)
@@ -1,3 +1,4 @@
+fails:String#encoding is equal to the source encoding by default
 fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII
 fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII only, despite the default internal encoding being different
 fails:String#encoding for US-ASCII Strings returns US-ASCII if self is US-ASCII only, despite the default external encoding being different
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101222/ddcdc6b5/attachment.html>


More information about the macruby-changes mailing list