1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

enc/ebcdic.h, enc/trans/ebcdic.trans,

test/ruby/test_transcode.rb: Fixed encoding name
to the correct one in the IANA registry (IBM037)
and added an alias (ebcdic-cp-us)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2015-12-15 08:57:58 +00:00
parent ec7a964dca
commit 81e7be08ed
4 changed files with 3038 additions and 4390 deletions

View file

@ -1,14 +1,9 @@
Tue Dec 15 16:19:26 2015 Takashi Kokubun <takashikkbn@gmail.com>
Tue Dec 15 17:57:57 2015 Martin Duerst <duerst@it.aoyama.ac.jp>
* lib/erb.rb: Render erb with array buffer for function call optimization.
[fix GH-1143]
* lib/rdoc/erb_partial.rb: ditto.
* template/verconf.h.tmpl: ditto.
Tue Dec 15 13:50:05 2015 Nobuyoshi Nakada <nobu@ruby-lang.org>
* string.c (rb_str_oct): [DOC] mention radix indicators.
[ruby-core:71310] [Bug #11648]
* enc/ebcdic.h, enc/trans/ebcdic.trans,
test/ruby/test_transcode.rb: Fixed encoding name
to the correct one in the IANA registry (IBM037)
and added an alias (ebcdic-cp-us)
Tue Dec 15 12:20:30 2015 Takashi Kokubun <takashikkbn@gmail.com>

View file

@ -1,6 +1,7 @@
#include "regenc.h"
/* dummy for unsupported, non-ascii-based encoding */
ENC_DUMMY("EBCDIC-US");
ENC_DUMMY("IBM037");
ENC_ALIAS("ebcdic-cp-us", "IBM037");
/* we start with just defining a single EBCDIC encoding,
* hopefully the most widely used one.

File diff suppressed because it is too large Load diff

View file

@ -2020,10 +2020,10 @@ class TestTranscode < Test::Unit::TestCase
end
def test_EBCDIC
check_both_ways("abcdeABCDE", "\x81\x82\x83\x84\x85\xC1\xC2\xC3\xC4\xC5", 'EBCDIC-US')
check_both_ways("aijrszAIJRSZ09", "\x81\x89\x91\x99\xA2\xA9\xC1\xC9\xD1\xD9\xE2\xE9\xF0\xF9", 'EBCDIC-US')
check_both_ways("Matz", "\xD4\x81\xA3\xA9", 'EBCDIC-US') # Dürst
check_both_ways("D\u00FCrst", "\xC4\xDC\x99\xA2\xA3", 'EBCDIC-US') # Dürst
check_both_ways("abcdeABCDE", "\x81\x82\x83\x84\x85\xC1\xC2\xC3\xC4\xC5", 'IBM037')
check_both_ways("aijrszAIJRSZ09", "\x81\x89\x91\x99\xA2\xA9\xC1\xC9\xD1\xD9\xE2\xE9\xF0\xF9", 'IBM037')
check_both_ways("Matz", "\xD4\x81\xA3\xA9", 'IBM037')
check_both_ways("D\u00FCrst", "\xC4\xDC\x99\xA2\xA3", 'IBM037') # Dürst
end
def test_nothing_changed