Return-Path: Delivered-To: apmail-jakarta-struts-dev-archive@apache.org Received: (qmail 78054 invoked from network); 26 Feb 2003 16:39:10 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 26 Feb 2003 16:39:10 -0000 Received: (qmail 21721 invoked by uid 97); 26 Feb 2003 16:40:48 -0000 Delivered-To: qmlist-jakarta-archive-struts-dev@nagoya.betaversion.org Received: (qmail 21713 invoked from network); 26 Feb 2003 16:40:47 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 26 Feb 2003 16:40:47 -0000 Received: (qmail 74200 invoked by uid 500); 26 Feb 2003 16:38:17 -0000 Mailing-List: contact struts-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list struts-dev@jakarta.apache.org Received: (qmail 74167 invoked from network); 26 Feb 2003 16:38:16 -0000 Received: from smtp018.mail.yahoo.com (216.136.174.115) by daedalus.apache.org with SMTP; 26 Feb 2003 16:38:16 -0000 Received: from cdcexch4.lithonia.com (HELO atlanta) (jmitchtx@192.234.68.70 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 26 Feb 2003 16:38:19 -0000 From: "James Mitchell" To: "'Struts Developers List'" Subject: RE: Test suites fail on localized computer Date: Wed, 26 Feb 2003 11:37:31 -0500 Message-ID: <01fa01c2ddb5$5c337350$6601a8c0@atlanta> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <3E5CE691.4050301@lifl.fr> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N LOL....now this is interesting, supposing I had picked a different locale....who knows how long this might have gone undetected. =20 I just changed my regional settings to France and my tests failed as well. I already see the problem and will commit the fix tonight. I forced the locale for the MessageTag tests, but forgot to do the same for WriteTag. -- James Mitchell Software Engineer/Struts Evangelist > -----Original Message----- > From: Cedric Dumoulin [mailto:cedric.dumoulin@lifl.fr]=20 > Sent: mercredi 26 f=E9vrier 2003 11:09 > To: Struts Developers List > Subject: Test suites fail on localized computer >=20 >=20 >=20 > Hi all, >=20 > Today I have run the test suite test.tomcat.41, but it fail on my=20 > computer: >=20 > [junit] junit.framework.AssertionFailedError:=20 > expected:<1,234> but=20 > was:<1=C2 234> > [junit] at=20 > org.apache.struts.taglib.bean.TestWriteTag.formatAndTest(TestW > riteTag.java:122) > [junit] at=20 > org.apache.struts.taglib.bean.TestWriteTag.endWriteTagNameForm > at(TestWriteTag.java:153) > =20 > Checking the code, it appear that we compare a localized string=20 > returned by the server with a static string not localized ;-). This=20 > should work well when the server is US_en, but doesn't work=20 > with FR_fr,=20 > and other locales. > Note that the shown returned string (<1=C2 234>) is not necessarily = the=20 > real returned string, because the text file used to catch the output=20 > doesn't support well localization. >=20 > There is other comparisons of this kind in the TestWriteTag=20 > file, and=20 > maybe in other files. I have try to run ant with other locale=20 > parameters, with no success: Tomcat is always launched with=20 > the locale=20 > of my computer, which I can't change. > As a result, I can't run the test suites. Is there someone=20 > who have a=20 > simple solution, or should we change the TestWriteTag file (how?). >=20 > cedric >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: struts-dev-help@jakarta.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: struts-dev-help@jakarta.apache.org