Bug 67249

Summary: Copying an email address and pasting it in a plain text editor shows U+0001 instead of the email address, also when referring the cell in a formula expression
Product: LibreOffice Reporter: Alberto Ruiz <aruiz>
Component: SpreadsheetAssignee: Eike Rathke <erack>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: cno, erack
Version: 4.1.0.1 rcKeywords: regression
Hardware: Other   
OS: All   
Whiteboard: target:4.2.0 target:4.1.1
i915 platform: i915 features:

Description Alberto Ruiz 2013-07-24 10:59:13 UTC
To reproduce in calc:

1) write an email address in a cell
2) Hit Enter
3) Select the cell
4) Ctrl+C
5) Open gedit/notepad or another plain text editor
6) Ctrl+V
Comment 1 Cor Nouws 2013-07-24 11:22:40 UTC
Hi Alberto,

thanks for the report. I can confirm this.
(Would not be surprised if there is a relation with bug 67094 )

Regards,
Cor
Comment 2 Cor Nouws 2013-07-24 11:24:24 UTC
See the problem already in 4.1.0 beta1
Comment 3 Eike Rathke 2013-07-24 16:36:01 UTC
(In reply to comment #1)
> (Would not be surprised if there is a relation with bug 67094 )

That's something completely different.
Comment 4 Eike Rathke 2013-07-24 19:01:33 UTC
Spotted the likely cause, working on a fix.
Comment 5 Eike Rathke 2013-07-24 19:18:39 UTC
Btw, same result when referring the cell in a formula, e.g.
A1: foo@example.org
A2: =A1
Result appears to be empty but is in fact U+0001 that is not displayed.
A3: =UNICODE(A2)
results in 1
Comment 6 Commit Notification 2013-07-25 14:20:21 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=1ecdc7aaf661e97a33cf521f553481d79cd26de2

resolved fdo#67249 use ScFieldEditEngine to resolve field content



The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.
Comment 7 Eike Rathke 2013-07-25 15:14:59 UTC
Pending review for 4-1 as https://gerrit.libreoffice.org/5106
Comment 8 Cor Nouws 2013-07-25 15:52:11 UTC
(In reply to comment #3)

> That's something completely different.

But luckily my false thought gave you the opportunity to step in quickly ;)
Comment 9 Commit Notification 2013-07-25 16:07:58 UTC
Eike Rathke committed a patch related to this issue.
It has been pushed to "libreoffice-4-1":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=8a42cb382fc1fff6ed0c57b33762080cdc0bd5a4&h=libreoffice-4-1

resolved fdo#67249 use ScFieldEditEngine to resolve field content


It will be available in LibreOffice 4.1.1.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds
Affected users are encouraged to test the fix and report feedback.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.