From 9f8cf6559a9cdc6a40e80e89983d7049ed847e1a Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 1 Sep 2008 10:38:16 +0000 Subject: [PATCH] * tool/transcode-tblgen.rb: ValidEncoding['eucJP-ms'] defined. "\xA2\xAF".encode("utf-8", "eucJP-ms") should raise Encoding::ConversionUndefined, not Encoding::InvalidByteSequence. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ tool/transcode-tblgen.rb | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 38e7dd4719..bec2a8fdf3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Sep 1 19:37:19 2008 Tanaka Akira + + * tool/transcode-tblgen.rb: ValidEncoding['eucJP-ms'] defined. + "\xA2\xAF".encode("utf-8", "eucJP-ms") should raise + Encoding::ConversionUndefined, not Encoding::InvalidByteSequence. + Mon Sep 1 18:27:51 2008 NAKAMURA Usaku * win32/win32.c (gettimeofday): shouldn't use mktime(3) because it's diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb index fe84703ce6..a09bf7ba0b 100644 --- a/tool/transcode-tblgen.rb +++ b/tool/transcode-tblgen.rb @@ -667,6 +667,7 @@ ValidEncoding = { 'ISO-8859-14' => '1byte', 'ISO-8859-15' => '1byte', 'Windows-31J' => 'Shift_JIS', + 'eucJP-ms' => 'EUC-JP' }.each {|k, v| ValidEncoding[k] = ValidEncoding.fetch(v) }