Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 68158 invoked from network); 4 Jun 2007 15:10:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2007 15:10:47 -0000 Received: (qmail 46049 invoked by uid 500); 4 Jun 2007 15:10:39 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 46027 invoked by uid 500); 4 Jun 2007 15:10:39 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 46009 invoked by uid 99); 4 Jun 2007 15:10:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 08:10:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 08:10:35 -0700 Received: from d1-emea-09.sun.com ([192.18.2.119]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l54FACmT007832 for ; Mon, 4 Jun 2007 15:10:13 GMT Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JJ400B019K35M00@d1-emea-09.sun.com> (original mail from Kristian.Waagan@Sun.COM) for derby-dev@db.apache.org; Mon, 04 Jun 2007 16:10:12 +0100 (BST) Received: from [129.159.112.188] by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JJ4005C0A4XLU8J@d1-emea-09.sun.com> for derby-dev@db.apache.org; Mon, 04 Jun 2007 16:10:09 +0100 (BST) Date: Mon, 04 Jun 2007 17:10:08 +0200 From: Kristian Waagan Subject: Re: [jira] Updated: (DERBY-1519) 'setAsciiStream' uses different encodings for embedded and client In-reply-to: Sender: Kristian.Waagan@Sun.COM To: derby-dev@db.apache.org Message-id: <46642B50.5090907@Sun.com> Organization: Sun Microsystems Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <1285987.1180630816205.JavaMail.jira@brutus> <465F0DF9.5080604@sbcglobal.net> <465FCE19.3090800@Sun.com> User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; no-NO; rv:1.8.1.3) Gecko/20070419 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 X-Virus-Checked: Checked by ClamAV on apache.org Knut Anders Hatlen wrote: > Kristian Waagan writes: > >> Mike Matrigali wrote: >>> From the description in the bug this seems like the right change, but >>> it does seem like it may also be another incompatibility. Should it >>> be added to the wiki? What difference will an app that somehow >>> depended on the old (wrong) behavior see now? >> I think the only difference is that where you previously inserted a >> character outside US-ASCII and got a '?' back, you will now get the >> actual character back. >> >> A typical example is the three "extra" Norwegian/Danish letters. >> >> So the patch might change what goes in and what comes back. >> Personally I think people needing these characters are already using >> setCharacterStream (or another mechanism handling the issue), and >> would not be affected. >> And people using only US-ASCII for input would not be affected either. >> The only case where it can affect input/output is when the input is >> something like ISO-8859-1, but as I said, I think this case is handled >> differently by the users. >> >> Just my thoughts. There is maybe a slight incompatibility, but due to >> its nature I think it is acceptable. >> >> So, what did I forget about? :) > > You could also have applications that pass the contents of a clob to a > library/method that only knows how to handle US-ASCII. If > getAsciiStream() starts using ISO-8859-1 (as it should), those > applications could get strange errors because Derby previously would > have masked non-US-ASCII characters as question marks. I don't think > this is a blocker, but perhaps it would be appropriate with a release > note? > I want to get this fix in due to tests for Clob, which breaks if this is not fixed. Can I get another opinion on the need for a release note? I'm having a little trouble writing meaningful words in the various sections, but I have added a draft to the Jira. thanks, -- Kristian