tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Taner Mansur (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENEJB-1071) Turkish Locale Problem
Date Fri, 11 Sep 2009 12:08:58 GMT
Turkish Locale Problem
----------------------

                 Key: OPENEJB-1071
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1071
             Project: OpenEJB
          Issue Type: Bug
    Affects Versions: 3.1.1
         Environment: Windows environments (Windows XP and Vista are tested) with Turkish
Locale settings
            Reporter: Taner Mansur
            Priority: Minor


There is a bug in string transformation when writing to stdout, which converts uppercase characters
to lowercase. It seems that the conversion is made with a String.toLowerCase() function call
which takes no arguments and uses the default system locale to determine local lowercase letters.
In Turkish, the lowercase equivalent of 'I' (U+0049) character is not 'i' (U+0069). It is
'ı' (U+0131). So the following output is shown on the console while OpenEJB initializes:

DEBUG - Using default 'openejb.nobanner=true'
Apache OpenEJB 3.1.1    build: 20090530-06:18
http://openejb.apache.org/

*****

INFO - Beginning load: D:\ext\openejb\lib\xml-resolver-1.2.jar
DEBUG - Using default 'openejb.tempclassloader.skip=none'  Possible values are: none, annotatıons,
enums
INFO - Configuring enterprise application: classpath.ear
WARN - No application-client.xml found assuming annotations present: classpath.ear, module:
xml-resolver-1.2.jar
DEBUG - Using default 'openejb.descriptors.output=false'
DEBUG - Using default 'openejb.validation.output.level=medıum'.  Possible values are: terse,
medıum, verbose

If you can't see the lowercase 'I': it is like 'med(U+0131)um' in the output which should
be medium. 
I believe this issue is closely related with the confirmed BCEL bug: 38787

https://issues.apache.org/bugzilla/show_bug.cgi?id=38787

It seems the BCEL function now in jre6/rt.jar : com/sun/org/apache/bcel/internal/util/InstructionFinder.compilePattern()
(Line 149) still has

  pattern.toLowerCase();

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message