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

native2ascii -reverse doesn't work for ISO-8859-1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0_01
    • Fix Version/s: 1.4.1
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      hopper
    • CPU:
      generic
    • OS:
      solaris_8
    • Verification:
      Verified

      Description

      ###@###.### 2002-01-30

      When I tried to use native2ascii -reverse on Solaris9 build55,
      it doesn't work when specifing -reverse -encoding 8859_1.
      It outputs the strings with \u00xx (looks like none of conversion is done).
      I confirmed it works fine on s8 UR7 (build 1.3.1_01).
      Also it seems fine when converting to UTF-8 not to 8859_1.

      sayama@oxanne[14]% uname -a
      SunOS oxanne 5.9 s81_55 sun4u sparc SUNW,Ultra-60
      sayama@oxanne[15]% od -xC sample_fr.txt
      0000000 64e9 706f 73e9 6573 0a00
                 d 351 p o s 351 e s \n
      0000011
      sayama@oxanne[16]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt
      d\u00e9pos\u00e9es
      sayama@oxanne[17]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding 8859_1
      d\u00e9pos\u00e9es
      sayama@oxanne[18]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding UTF-8
      déposées
      sayama@oxanne[20]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding ISO-8859-1
      d\u00e9pos\u00e9es
      sayama@oxanne[21]% /usr/j2se/bin/native2ascii -encoding 8859_1 sample_fr.txt | /usr/j2se/bin/native2ascii -reverse -encoding ISO8859_1
      d\u00e9pos\u00e9es
      sayama@oxanne[23]% /usr/j2se/bin/java -version
      java version "1.4.0-rc"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b89)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b89, mixed mode)

        Attachments

          Activity

            People

            Assignee:
            ilittlesunw Ian Little (Inactive)
            Reporter:
            osayama Osamu Sayama (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: