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

* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.

[Ruby 1.9 - Bug #4874]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
drbrain 2011-06-16 22:54:53 +00:00
parent 105a9e036c
commit 517c3385b1
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Jun 17 07:53:50 2011 Eric Hodel <drbrain@segment7.net>
* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
[Ruby 1.9 - Bug #4874]
Fri Jun 17 07:46:50 2011 Eric Hodel <drbrain@segment7.net>
* lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch by

View file

@ -2319,6 +2319,10 @@ class CSV
private
#
# Returns the encoding of the internal IO object or the +default+ if the
# encoding cannot be determined.
#
def raw_encoding(default = Encoding::ASCII_8BIT)
if @io.respond_to? :internal_encoding
@io.internal_encoding || @io.external_encoding