manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1444771 - /manifoldcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
Date Mon, 11 Feb 2013 14:07:01 GMT
Author: kwright
Date: Mon Feb 11 14:07:01 2013
New Revision: 1444771

URL: http://svn.apache.org/r1444771
Log:
Fix the Big-endian detection case

Modified:
    manifoldcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java

Modified: manifoldcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java?rev=1444771&r1=1444770&r2=1444771&view=diff
==============================================================================
--- manifoldcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
(original)
+++ manifoldcf/trunk/framework/core/src/main/java/org/apache/manifoldcf/core/fuzzyml/BOMEncodingDetector.java
Mon Feb 11 14:07:01 2013
@@ -151,8 +151,8 @@ public class BOMEncodingDetector extends
       }
       else
       {
-        // Encoding detected as UTF-16LE
-        mark();
+        // Encoding detected as UTF-16LE.  Do NOT re-mark, we need this
+        // character for later.
         return establishEncoding("UTF-16LE");
       }
       break;
@@ -197,7 +197,7 @@ public class BOMEncodingDetector extends
   protected boolean establishEncoding(String encoding)
     throws ManifoldCFException
   {
-    this.encoding = encoding;
+    setEncoding(encoding);
     return true;
   }
   



Mime
View raw message