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

Properties.load() doesn't work correctly against multi-byte character strings.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.1_alpha, 1.1, 1.3.0
    • core-libs
    • generic, x86, sparc
    • generic, solaris_2.5.1, solaris_9, windows_95



      Name: mc57594 Date: 02/28/97


      1. Create a property file including the following line;
      hello=.... // Assume .... as a multi-byte character string.
      2. Call the method load() of the class Properties against the above property file.
      3. Call the method getProperty() against the above property object with the key "hello", then println() it.
      4. Garbage characters was displayed.

      I looked into the source file Properties.java provided with JDK1.1. The method load() is using the deprecated and not-completely-internationalized method "getLocalizedInputStream()". I think it causes this problem.

      company - Sybase K.K. , email - ###@###.###
      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: