[
https://issues.jboss.org/browse/TEIID-2383?page=com.atlassian.jira.plugin...
]
Hisanobu Okuda commented on TEIID-2383:
---------------------------------------
This works fine on my setup:-
{code}
[hokuda@localhost xxx]$ git diff
diff --git
a/teiid-7.7.1.GA/common-core/src/main/java/org/teiid/core/util/InputStreamReader.java
b/teiid-7.7.1.GA/commo
index eca54fe..3c6ce70 100644
--- a/teiid-7.7.1.GA/common-core/src/main/java/org/teiid/core/util/InputStreamReader.java
+++ b/teiid-7.7.1.GA/common-core/src/main/java/org/teiid/core/util/InputStreamReader.java
@@ -90,7 +90,7 @@ public class InputStreamReader extends Reader {
}
done = true;
}
- if (bb.position() != read) {
+ if (bb.hasRemaining()) {
bb.compact();
} else {
bb.clear();
@@ -105,4 +105,4 @@ public class InputStreamReader extends Reader {
return len;
}
-}
\ No newline at end of file
+}
{code}
InputStreamReader throws MalformedInputException when handling
multi-byte characters
------------------------------------------------------------------------------------
Key: TEIID-2383
URL:
https://issues.jboss.org/browse/TEIID-2383
Project: Teiid
Issue Type: Bug
Components: Common
Affects Versions: 7.7.1
Reporter: Hisanobu Okuda
Assignee: Steven Hawkins
Attachments: sample.zip, simple_client.tar
My VDB uses File translator to handle a csv file which contains multi-byte characters.
Reading some csv file via the VDB, MalformedInputException always occurs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira