Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-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 C05D0DCA6 for ; Sat, 17 Nov 2012 02:38:21 +0000 (UTC) Received: (qmail 72543 invoked by uid 500); 17 Nov 2012 02:38:21 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 72499 invoked by uid 500); 17 Nov 2012 02:38:20 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 72465 invoked by uid 99); 17 Nov 2012 02:38:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2012 02:38:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cyrill.zadra@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-vc0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Nov 2012 02:38:14 +0000 Received: by mail-vc0-f175.google.com with SMTP id p1so3548463vcq.6 for ; Fri, 16 Nov 2012 18:37:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=LwOliTjj6XnHmK3UuapeOmNlZGSt1dJyMD2SZRRzYHM=; b=H/oy6DIhdcX5hDNtbO0dIFBRRHQGTj6leIsH8476+jHmHrcMbqQjDjgAITwIXpc6+I 7nRZ4dxs3CUpti7hHLKE7mCYdJLiNmHyC+1YGYz/jVj5RADz1hrAK7q8sl26mMdM6Jwn uAqNsEhieL8FsehrQEp/wtUvaZuR5hAjWPdyLa776e+t7ihZjFMyACw8l/5t3fiELRn5 rvEk72qb5ZRQNnY0a3qojuSnLb23ob+9KRk5/OhvFCJqhLYAStngJRcoX9u24uMnbKht eANi8coPB7R1cenFTArIhP/8g3WSK1+Fn8ctSvC5uJmqW7tX1V7LIQdO0n/J1VUPRSjh h16Q== MIME-Version: 1.0 Received: by 10.58.210.65 with SMTP id ms1mr7459993vec.59.1353119873541; Fri, 16 Nov 2012 18:37:53 -0800 (PST) Received: by 10.220.140.208 with HTTP; Fri, 16 Nov 2012 18:37:53 -0800 (PST) In-Reply-To: <149F8129B58B2D418508E63117D9C5419B5B35FEEE@nambx05.corp.adobe.com> References: <149F8129B58B2D418508E63117D9C5419B5B35FEEE@nambx05.corp.adobe.com> Date: Fri, 16 Nov 2012 18:37:53 -0800 Message-ID: Subject: Re: [FALCON] Problem with \uFEFF chararcters in mustella files From: Cyrill Zadra To: "flex-dev@incubator.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Gordon I think so too.. I'll try to create a list with all the affected files and if there aren't too much I'll replace them manually .. otherwise there is maybe a way to do it by script. cyrill Am 16.11.2012 um 11:15 schrieb Gordon Smith : > I believe a BOM is only a BOM if it's at the beginning of the file. So I think Falcon is correct to complain and the files should be fixed. > > - Gordon > > -----Original Message----- > From: Cyrill Zadra [mailto:cyrill.zadra@gmail.com] > Sent: Friday, November 16, 2012 1:58 AM > To: flex-dev@incubator.apache.org > Subject: Re: [FALCON] Problem with \uFEFF chararcters in mustella files > > I may have found the problem. It looks like there are files where the BOM isn't at the beginning of a file and thats the case where falcon can run into problems. > > ActionScript Example > > //////////////////////////////////////////////////////////////////////////////// > // > // Apache License Header > // > //////////////////////////////////////////////////////////////////////////////// > BOMpackage ... > { > > } > > cyrill > > On Thu, Nov 15, 2012 at 10:44 PM, Cyrill Zadra wrote: >> Thanks Alex. Just looked into falcon code and found.a few places where >> it already ignore the BOM. So it must be a rare exception. I'll take a >> look into that and try to find out in which exception it fails. >> >> cyrill >> >> On Thu, Nov 15, 2012 at 9:03 PM, Alex Harui wrote: >>> >>> >>> >>> On 11/15/12 8:22 PM, "Cyrill Zadra" wrote: >>> >>>> Hi >>>> >>>> In the mustella tests there are files that contains \uFEFF (just >>>> before the package declaration) and in some cases falcon has problem >>>> with this character and ends with the error: >>>> >>>> [java] Error: Unexpected character. '?' is not allowed here [java] >>>> ?package assets.styleTest >>>> >>>> Following command searches for non-ascii chars and if executed in >>>> mustella folder it returns quite a big result. >>>> >>>> grep --color='auto' -I -R -P -n "^[\x80-\xFF]" * >>>> >>>> Are those characters really supposed to be there? >>> >>> See [1]. Falcon will have to learn to ignore them. >>> >>> [1] >>> http://www.rgagnon.com/javadetails/java-handle-utf8-file-with-bom.htm >>> l >>> >>> -- >>> Alex Harui >>> Flex SDK Team >>> Adobe Systems, Inc. >>> http://blogs.adobe.com/aharui >>>