summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 10:38:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-01 10:38:16 +0000
commit06a0d7b4a907396112bdf3293bf6a6941d555a7f (patch)
treefb29a45bf69f579afa7c50d233255e8fd5ee5a17
parentdbe28713cf5b61cffceec081f9883f582ff4c364 (diff)
downloadruby-06a0d7b4a907396112bdf3293bf6a6941d555a7f.tar.gz
ruby-06a0d7b4a907396112bdf3293bf6a6941d555a7f.tar.xz
ruby-06a0d7b4a907396112bdf3293bf6a6941d555a7f.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@19029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--tool/transcode-tblgen.rb1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 38e7dd471..bec2a8fdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Sep 1 19:37:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * 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 <usa@ruby-lang.org>
* 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 fe84703ce..a09bf7ba0 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)
}