* lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-lis:40546]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
93ea81670a
commit
d3125e3e43
@ -1,3 +1,7 @@
|
||||
Fri Jan 21 13:58:37 2005 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-lis:40546]
|
||||
|
||||
Fri Jan 21 00:37:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
|
||||
|
||||
* ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
|
||||
|
@ -1266,7 +1266,7 @@ module Net
|
||||
buf.concat(c)
|
||||
i += 1
|
||||
elsif (c & 0xe0) == 0xc0 &&
|
||||
inlen >= 2 &&
|
||||
len >= 2 &&
|
||||
(s[i + 1] & 0xc0) == 0x80
|
||||
if c == 0xc0 || c == 0xc1
|
||||
raise DataFormatError, format("non-shortest UTF-8 sequence (%02x)", c)
|
||||
|
Loading…
x
Reference in New Issue
Block a user