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

* 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
This commit is contained in:
akr 2008-09-01 10:38:16 +00:00
parent 03f1a06114
commit 9f8cf6559a
2 changed files with 7 additions and 0 deletions

View file

@ -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

View file

@ -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)
}