You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/08/02 08:48:42 UTC

[Bug 120442] New: Copy text to Firefox or Chrome cause data damaged

https://issues.apache.org/ooo/show_bug.cgi?id=120442

          Priority: P3
            Bug ID: 120442
          Assignee: ooo-issues@incubator.apache.org
           Summary: Copy text to Firefox or Chrome cause data damaged
          Severity: normal
        Issue Type: DEFECT
    Classification: Application
                OS: All
          Reporter: yanji.yj@gmail.com
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: editing
           Product: word processor

Created attachment 78816
  --> https://issues.apache.org/ooo/attachment.cgi?id=78816&action=edit
sample

Build AOO 3.4.1
OS: All
Steps:
1. Open attached sample file
2. Select content of line 8
3. Paste it to edit field in Firefox, Chrome or Safari. e.g. in memo of gmail

Defect: the content is not pasted correctly.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

--- Comment #3 from Chen Peng <ch...@gmail.com> ---
1. Root Cause:
  In Firefox or Chrome, if the unicode is equal or larger than 0xd800 and
smaller equal or than 0xdbff, and the next unicode is equal or larger then
0xdc00 and equal or smaller than 0xdfff, using such two 16-bit unicode can't
display the data such as the last 5 charaters of line 8 in the sample. 
2. Resolution:
Need to convert such two 16-bit unicode to a 32-bit unicode to show the
content.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

Du Jing <bj...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED
                 CC|                            |bjdujing@gmail.com

--- Comment #9 from Du Jing <bj...@gmail.com> ---
verified on the build r1378446

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

--- Comment #8 from Chen Peng <ch...@gmail.com> ---
Thank you, Herbert. It is more clear now.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

Regina Henschel <rb...@t-online.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rb.henschel@t-online.de

--- Comment #2 from Regina Henschel <rb...@t-online.de> ---
I think, that a browser is not suitable to examine, whether AOO uses the
clipboard correctly. The character set and the font of a displayed website
depends on the settings of the browser and the settings in the website.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

hdu@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #78870|review?                     |review+
              Flags|                            |

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

hdu@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hdu@apache.org
             Blocks|                            |102943

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

--- Comment #5 from Chen Peng <ch...@gmail.com> ---
It is correct if paste such content in IE or MS. The content of last 5
characters in clipboard is using two 16-bit unicode format, but paste such
content in Chrome, Firefox or Safari, it is wrong, need to change the two
16-bit unicode to a 32-bit unicode to show the right content. 
(In reply to comment #2)
> I think, that a browser is not suitable to examine, whether AOO uses the
> clipboard correctly. The character set and the font of a displayed website
> depends on the settings of the browser and the settings in the website.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

Chen Peng <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chenpeng2006@gmail.com

--- Comment #1 from Chen Peng <ch...@gmail.com> ---
I will take this bug, thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

hdu@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |AOO 3.5.0

--- Comment #7 from hdu@apache.org ---
Thanks for finding, analyzing and solving the problem. I reviewed and applied
the patch with some minor modifications.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

--- Comment #6 from SVN Robot <sv...@dev.null.org> ---
"hdu" committed SVN revision 1370716 into trunk:
#i120442# fix html-flavored copy+paste of unicode surrogate pairsPatch-by:
Ch...

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

Chen Peng <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #78870|                            |review?
              Flags|                            |

--- Comment #4 from Chen Peng <ch...@gmail.com> ---
Created attachment 78870
  --> https://issues.apache.org/ooo/attachment.cgi?id=78870&action=edit
Patch for 120442

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 120442] Copy text to Firefox or Chrome cause data damaged

Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120442

Du Jing <bj...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|VERIFIED                    |CLOSED

-- 
You are receiving this mail because:
You are the assignee for the bug.