Skip to content

Commit

Permalink
* lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
Browse files Browse the repository at this point in the history
	  [Ruby 1.9 - Bug ruby#4874]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
drbrain committed Jun 16, 2011
1 parent 105a9e0 commit 517c338
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions lib/csv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2319,6 +2319,10 @@ def encode_str(*chunks)

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
Expand Down

0 comments on commit 517c338

Please sign in to comment.