aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/csv.rb4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f5b32a3063..432baa8cd7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/lib/csv.rb b/lib/csv.rb
index 50aba3d91e..ce05164c75 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -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