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

native2ascii -reverse -encoding UnicodeX misses the first \uxxxx sequence

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs

      Name: jl125535 Date: 09/02/2003


      FULL PRODUCT VERSION :
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      FULL OS VERSION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      A call to native2ascii -reverse -encoding UnicodeLittle converts all \uxxxx codes except the first one.

      Same with UnicodeBig. UnicodeXXXUnmarked works fine.

      Under Linux with jdk1.3 the error occured too.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create a file with content:
      \u00f6\u00fc\u00f6\u00e4

      call:
      native2ascii -reverse -encoding UnicodeLittle file


      EXPECTED BEHAVIOR -
      (occurs when no -encoding is specified)
      ÷ⁿ÷Σ


      ACTUAL -
       â– \ u 0 0 f 6 ⁿ ÷ Σ


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      If for a property file, just add a comment to the first line with a char above the 127 bit border.
      (Incident Review ID: 188491)
      ======================================================================
      ###@###.### 2003-09-23

            ilittlesunw Ian Little (Inactive)
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: