[ http://issues.apache.org/jira/browse/DERBY-683?page=all ]
Deepa Remesh updated DERBY-683:
-------------------------------
Fix Version: 10.1.3.0
Derby Info: [Patch Available]
To merge this fix, I have also ported the fix for DERBY-463 which is in the
same area. The patch for DERBY-463 is attached to
http://issues.apache.org/jira/browse/DERBY-463. This patch has to be applied
before running the following merge command:
svn merge -r 374468:374469 https://svn.apache.org/repos/asf/db/derby/code/trunk
With the patch for DERBY-463 and the merge for DERBY-683, I verified that the
attached repro passes with UTF-16 file encoding in v10.1. I also ran
derbynetclientmats with Sun jdk 1.4.2 on Windows XP. Please take a look at
these. Thanks.
> Use correct encoding for ClobOutputStream on client
> ---------------------------------------------------
>
> Key: DERBY-683
> URL: http://issues.apache.org/jira/browse/DERBY-683
> Project: Derby
> Type: Bug
> Components: Network Client
> Versions: 10.1.1.1, 10.1.1.0
> Environment: all
> Reporter: Sunitha Kambhampati
> Assignee: Deepa Remesh
> Fix For: 10.2.0.0, 10.1.3.0
> Attachments: DERBY-683_tstpatch3_2006_02_16.diff,
> DERBY-683_tstpatch3_2006_02_16.stat, ascii.txt, clob.java, derby-683.diff,
> derby-683_021006.diff, derby-683_021006.stat, derby-683_tests.diff,
> derby-683_tests.status
>
> In client, there is code in ClobOutputStream which uses this api - new
> String(byte[]). Per the java api
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#String(byte[])
> ,this will construct a string by decoding the array of bytes using the
> platform's default character set.
> org.apache.derby.client.am.ClobOutputStream is used for Clob.setAsciiStream
> and the write methods use the String(byte[]) which is incorrect because it
> will use the default platform encoding. Per the jdbcapi , this should use
> ascii encoding.
> In areas related to Clobs, also check for other places where String(byte[])
> is used,as it may not be the desired behavior.
> Dan pointed this problem here :
> http://issues.apache.org/jira/browse/DERBY-463?page=comments#action_12356742
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira