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

native2ascii fails to convert Japanese man page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P1 P1
    • None
    • 1.4.0
    • core-libs

      In Merlin build process, it uses native2ascii to convert Japanese man page from native eucJP encoding to target encoding UTF-8, PCK.

      L10n has delivered new Japanese man page in SGML format, native2ascii fails to convert those pages.

      I have tested it on couple of different build, it works on b66

      /net/jdk.eng/export/disk6/promoted/jdk/1.4/beta_refresh/b66/binaries/solsparc/bin

      but fails on b67 and up.

      I attached the file cause the problem with the bug, the command for duplicating the problem is

      native2ascii -encoding eucJP java.1 | native2ascii -reverse -encoding UTF-8

      ------------------
      It seems that there is a problem in the "-reverse" option.
      Under the ja_JP.UTF-8 locale environment:

      % native2ascii -encoding eucJP java.1 java.1.ascii

      The above command succeeded, then

      % native2ascii -reverse java.1.ascii
      java.lang.StringIndexOutOfBoundsException: String index out of range: 8193

      The exception was occurred.

      % java -version
      java version "1.4.0-beta_refresh"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b74)
      Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b74, mixed mode)
      %

      kenichi.kurosaki@Japan 2001-08-03

            ilittlesunw Ian Little (Inactive)
            khongsunw Karl Hong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: