commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18836] New: - test.lang fails if compiled with non iso-8859-1 locales
Date Wed, 09 Apr 2003 02:47:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18836>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18836

test.lang fails if compiled with non iso-8859-1 locales

           Summary: test.lang fails if compiled with non iso-8859-1 locales
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: mrsam@courier-mta.org


Linux platform JDK 1.4.1_02

$ export LANG=C ; ant clean && ant dist && ant test

test.lang:
     [echo] Running lang package tests ...
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] .........................................
     [java] ...........................F.F
     [java] Time: 0.402
     [java] There were 2 failures:
     [java] 1)
testEscapeHtml(org.apache.commons.lang.StringEscapeUtilsTest)junit.framework.ComparisonFailure:
languages expected:<...ccedil...> but was:<...#65533...>
     [java]     at
org.apache.commons.lang.StringEscapeUtilsTest.testEscapeHtml(StringEscapeUtilsTest.java:161)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] 2)
testHtmlunescape(org.apache.commons.lang.StringEscapeUtilsTest)junit.framework.ComparisonFailure:
languages expected:<...?...> but was:<......>
     [java]     at
org.apache.commons.lang.StringEscapeUtilsTest.testHtmlunescape(StringEscapeUtilsTest.java:168)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

     [java] FAILURES!!!
     [java] Tests run: 192,  Failures: 2,  Errors: 0

$ export LANG=en_US ; ant clean && ant dist && ant test

[ this one works ]

$ export LANG=en_US.utf-8 ; ant clean && ant dist && ant test

[ fails, with a slightly different error #2: ]

     [java] 2)
testHtmlunescape(org.apache.commons.lang.StringEscapeUtilsTest)junit.framework.ComparisonFailure:
languages expected:<...�...> but was:<...ç...>

LANG's setting for "ant test" does not appear to matter.  If LANG=C for "ant
dist", "ant test" will fail even if LANG=en_US.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message