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

EUC_JP_LINUX.java flawed: IllegalArgumentException when parsing ja_JP.eucJP text

XMLWordPrintable

      We are reporting a problem with the extended charset in JDK 1.4.1 and 1.4.2
      that is still an issue in 1.5.0. The problem is that EUC_JP_LINUX.java is
      apparently incorrect.

      Attached is an example (testcase) trying to parse text in ja_JP.eucJP
      environment that will throw IllegalArgumentException on Linux because the
      bytes are handled incorrectly.

      To run:

      > java ?mx8m TestDame3 dame.txt

            ilittlesunw Ian Little (Inactive)
            clucasius Carlos Lucasius (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: