This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/13852] New: gcj - incorrect Locale on win32


System.out.println(Locale.getDefault());

Or:

import java.util.ResourceBundle;
import java.util.Locale;

public class Bundle {

        public static void main(String[] argv) {

                System.out.println(Locale.getDefault());
                ResourceBundle bundle = ResourceBundle.getBundle("test");
                System.out.println(bundle.getString("one"));

        }

}

// Change local (Control Panel->Regional Settings->Finnish)

// create files:
// test.properties:
// one = one
//
// test_fi_FI.properties:
// one = oneFI
//
// Results:
// gcj:
// en_US
// one
//
// java Bundle
// fi_FI
// oneFI

-- 
           Summary: gcj - incorrect Locale on win32
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ovid at mailandnews dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13852


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]