Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 3515 invoked from network); 22 May 2009 00:36:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 00:36:03 -0000 Received: (qmail 52754 invoked by uid 500); 22 May 2009 00:36:15 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 52680 invoked by uid 500); 22 May 2009 00:36:15 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 52669 invoked by uid 99); 22 May 2009 00:36:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 00:36:15 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.220.175 as permitted sender) Received: from [209.85.220.175] (HELO mail-fx0-f175.google.com) (209.85.220.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 00:36:04 +0000 Received: by fxm23 with SMTP id 23so1439981fxm.0 for ; Thu, 21 May 2009 17:35:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=JpFykpFNOEdc7UEpwvrPTfhiw8nRY1tdpR/xsSfUX/I=; b=x4XbfFK7GQVM3zTeOJL4RMgAM+fZEalnwOTaYeAsa4SOPQbm6YIjoCXIStNIoHEwT+ brHmzCl2uI2HMznDTeGbq1kSW4s2MSOLjseBzsIK8Qc1pVx4/2SLFBmngtlV6B/3A6Dz Wy4QDKzdf2E1BTofudKSwvQg9N2vap0dvMJMw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; b=RkV/mGAkB8f6yaZTcrUpTR+RS/hgcg1cXazquMLU1Tax95ruLmXXDyBIlKTDiQqP9J UkmVAZofnLNv6/soqJZQWd5NvjLA8N8Rro85IsbJ5rPy/Ql4feSNUCrMaes1GNqCnhBT 6XNeN4EgYun/rrjnyCOij7goi5GKoRC7foxJs= MIME-Version: 1.0 Sender: knst.kolinko@gmail.com Received: by 10.103.52.13 with SMTP id e13mr1671373muk.46.1242952544172; Thu, 21 May 2009 17:35:44 -0700 (PDT) Date: Fri, 22 May 2009 04:35:44 +0400 X-Google-Sender-Auth: 67b49bfec76640fc Message-ID: <427155180905211735p20634b2am88725c06cc79344c@mail.gmail.com> Subject: Coding Guidelines, encodings, keywords From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, all! Are there any Coding Guidelines that we ought to follow, or is our project on our own there? I am interested in clarifying the following question: What is the character encoding for our sources. Our build scripts do not specify an explicit encoding yet, and, as I heard, some months ago the build environment for our releases changed from some western Windows to Linux with a locale using UTF-8 encodi= ng. I would like to draw your attention that there is such SVN keyword as $Date= $, that expands to UTF-8 string containing localized month and day of week nam= es. E.g.: $Revision: 776947 $ $Date: 2009-05-21 08:33:21 +0400 (=FE=D4, 21 =CD=C1=CA = 2009) $ That makes the files that use that keyword de-facto UTF-8 on non-English locales. More on svn keywords: http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.= html A workaround would be to either limit the string width (e.g. $Date:: 2009-05-21 08:33:21 #$) or to use $Id$ instead. Do we officially acknowledge that the sources are UTF-8? What explicit encoding should be specified in javac and javadoc tasks in our build files? ISO-8859-1 or UTF-8 ? Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org