Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F2F6CABC for ; Tue, 5 Jun 2012 20:28:25 +0000 (UTC) Received: (qmail 12837 invoked by uid 500); 5 Jun 2012 20:28:23 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 12763 invoked by uid 500); 5 Jun 2012 20:28:23 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 12407 invoked by uid 99); 5 Jun 2012 20:28:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jun 2012 20:28:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 46869140BEF for ; Tue, 5 Jun 2012 20:28:23 +0000 (UTC) Date: Tue, 5 Jun 2012 20:28:23 +0000 (UTC) From: "Becky Gibson (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <744061179.41257.1338928103292.JavaMail.jiratomcat@issues-vm> In-Reply-To: <1206792645.18127.1333647623709.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CB-448) Modify non-ascii file append test to not rely on JavaScript string length MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Becky Gibson resolved CB-448. ----------------------------- Resolution: Fixed Fix Version/s: 1.7.0 fixed with this commit: https://github.com/apache/incubator-cordova-mobile-spec/commit/db377f9f2b4c5507b6eb1fcb8eb4fa029030cdef > Modify non-ascii file append test to not rely on JavaScript string length > ------------------------------------------------------------------------- > > Key: CB-448 > URL: https://issues.apache.org/jira/browse/CB-448 > Project: Apache Cordova > Issue Type: Bug > Components: mobile-spec > Affects Versions: 1.6.0 > Reporter: Becky Gibson > Assignee: Becky Gibson > Fix For: 1.7.0 > > > The recently added tests in file spec to test appending to files with non-ascii data compares the JavaScript length of the string with the FileWriter.length and FileWriter.position. This fails on iOS because iOS encodes the string when it writes it to the file, thus the writer.length may not match the original JavaScript string length. I believe that as long as the data written matches the data read back, the write is correct and the test should pass. Will update the test to make that comparison rather than relying on length. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira