Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4205423

With List component, core dump will generate in zh_CN locale.

    XMLWordPrintable

Details

    • sparc
    • solaris_2.6

    Description

      JDK: 1.2.2-D
      OS: Solaris 2.7
      Locale: zh_CN

      In jsk1.2.2-D, using List component, in zh_CN locale (in Solaris, setenv LANG zh), core dump will generate.
      Following is a program to reproduce it.


      ====================================ListTester===============================
      import java.awt.*;
      import java.awt.List;
      import java.awt.event.*;
      import java.util.*;
      public class ListTester extends Panel {
          List list1;
          static byte[] BB = {
              (byte) 0xA1, (byte) 0xD3, (byte) 0xA1, (byte) 0xD4, (byte) 0xA1,
              (byte) 0xD5, (byte) 0xA1, (byte) 0xD6, (byte) 0xA1, (byte) 0xD7,
              (byte) 0xA1, (byte) 0xD8, (byte) 0xA1, (byte) 0xD9, (byte) 0xA1,
              (byte) 0xDA, (byte) 0xA1, (byte) 0xDB, (byte) 0xA1, (byte) 0xDC
          };
          Label button = new Label("core");
          public static void main(String args[]) {
              ListTester l = new ListTester();
              l.doit();
          }
          public void doit() {
              Frame f = new Frame("List Tester");
              f.setLayout(new GridLayout(1, 2));
              list1 = new List();
              f.add(list1);
              f.add(button);
              f.pack();
              f.show();
              try {
                  Thread.sleep(1000);
              } catch (Exception eee) {}
              for (int count = 0; count < 3; count++) {
                  try {
                      list1.add(new String(BB, "EUC_CN"));
                  } catch (Exception eee) {}
              }
          }
      }
      ==============================================================================


      setenv LANG zh
      java ListTester
      this program will hang up and then core dump

      setenv LANG C
      java ListTester
      it work well.


      jim.hu@prc 1999-01-25

      Attachments

        Activity

          People

            dmendenhsunw David Mendenhall (Inactive)
            jhusunw Jim Hu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: