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

* io.c (rb_io_fread): may lose data on nonblocking read.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-03-23 15:38:44 +00:00
parent 5aadcd9349
commit 94f40186c0
4 changed files with 16 additions and 12 deletions

View file

@ -59,13 +59,13 @@ class String
def end_regexp
case $KCODE[0]
when ?s, ?S
/#{PATTERN_SJIS}$/o
/#{PATTERN_SJIS}$/on
when ?e, ?E
/#{PATTERN_EUC}$/o
/#{PATTERN_EUC}$/on
when ?u, ?U
/#{PATTERN_UTF8}$/o
/#{PATTERN_UTF8}$/on
else
/.$/o
/.$/on
end
end