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

Copy&Paste from dtterm to Swing text components on Solaris/ja doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.4.2
    • client-libs
    • x86, sparc
    • linux, solaris_9


      [Tested with Mantis b03 on Solaris Sparc ja locale]

      Copying Japanese characters from dtterm window and pasting them to Swing text componets on Solaris Ja locale using Copy key/Paste key or dtterm's menu(Edit->Copy/swing application's menu for Pasting), the chacacters can't be displayed on the componetns.

      I saw the problem on Solaris 9 and 8 Sparc ja_JP.euc locale using Notepad demo, Stylepad demo and other swing application(JTextArea).

      Trying the same test for ASCII characters, it works fine.

      ===========================================================================
      To reproduce,

      1. Launch Notepad demo on $JAVAHOME/demo/jfc/Notepad.

      2. Launch dtterm and cat the attached file.
      (It includes some Japanese characters \u3042 \u3044 \u3046 \u3048 \u304a \u30a2 \u30a4 \u30a6 \u30a8 \u30aa)

      3. Highlight the characters and copy the characters using Copy key(or dttemrs Edit->copy menu).

      4. Paste them onto Notepad demo window using Paste key(or Notepad's Edit->Paste menu)

      5. The characters are not displayed on the demo window.

      ===========================================================================

      I tried copying the characters from dtpad and tried to paste them on the swing componets, this problem is not reproducible and the characters are displyaed properly.

      This is not reproducible with Hopper FCS and 1.4.1_01.
      This is reproducible with Mantis b02.

      There is bug 4718897 which was fixed and verified in Mantis.
      (Synopsis: Clipboard context does not work correctly on Solaris)
      This is reproducible with Hopper FCS and not reproducible with Mantis.

      I suspect 4718897's fix affects the problem.
      For 4718897's fix, flavormap.properties was changed from Hopper.
      (Please see Suggested Fix of the bug report for the detail.)
      In trying the steps above with Mantis b03, I replaced the flavormap.properties with Hopper's one and tried the test, this problem was not reproducible.
      So I think that 4718897's fix cause this problem.
      Therefore, I set drag&drop as Subcategory as same as 4718897.


      ----------------------------------------------------------------------------
      Correction for a description above,
       "I saw the problem on Solaris 9 and 8 Sparc ja_JP.euc locale...."
       =======> not ja_JP.euc, ja locale

      I confirmed also that this is reproducible on ja_JP.PCK and ja_JP.UTF-8.

      ###@###.### 2002-10-23
      ----------------------------------------------------------------------------

            denis Denis Fokin (Inactive)
            mtokunagsunw Miki Tokunaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: