[Pharo-project] Line breaks lost when copy from clipboard on mac
When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced). When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10. Is this related to the Unicode changes? http://code.google.com/p/pharo/issues/detail?id=823 Adrian ___________________ http://www.adrian-lienhard.ch/
FFIW, I see this too. -----Original Message----- From: pharo-project-bounces@lists.gforge.inria.fr [mailto:pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Adrian Lienhard Sent: Monday, May 18, 2009 8:04 AM To: Pharo Development Subject: [Pharo-project] Line breaks lost when copy from clipboard on mac When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced). When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10. Is this related to the Unicode changes? http://code.google.com/p/pharo/issues/detail?id=823 Adrian ___________________ http://www.adrian-lienhard.ch/ _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Adrian Lienhard wrote:
When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced).
When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10.
Is this related to the Unicode changes?
Related to the clipboard changes. The new Mac VM supports Unicode in the standard clipboard primitive, not sure if it has the same behavior. We wouldn't need the ClipboadPlugin then. Michael
On Mon, May 18, 2009 at 3:04 PM, Adrian Lienhard <adi@netstyle.ch> wrote:
When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced).
When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10.
Is this related to the Unicode changes?
I have the same problem under Linux -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
You could inspect paste string: i bet these are LF when Squeak insists on having CR 2009/5/18 Damien Cassou <damien.cassou@gmail.com>:
On Mon, May 18, 2009 at 3:04 PM, Adrian Lienhard <adi@netstyle.ch> wrote:
When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced).
When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10.
Is this related to the Unicode changes?
I have the same problem under Linux
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Yes, that is what I did. (In the broken version the line break character has value 10 (=LF) whereas in the earlier version that worked it had value 13 (=CR).) Adrian On May 18, 2009, at 17:30 , Nicolas Cellier wrote:
You could inspect paste string: i bet these are LF when Squeak insists on having CR
2009/5/18 Damien Cassou <damien.cassou@gmail.com>:
On Mon, May 18, 2009 at 3:04 PM, Adrian Lienhard <adi@netstyle.ch> wrote:
When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced).
When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10.
Is this related to the Unicode changes?
I have the same problem under Linux
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
I have not a squeak handy, but I think there is already a method in String for converting, not speaking of stream, so this should be easy to solve. 2009/5/18 Adrian Lienhard <adi@netstyle.ch>:
Yes, that is what I did. (In the broken version the line break character has value 10 (=LF) whereas in the earlier version that worked it had value 13 (=CR).)
Adrian
On May 18, 2009, at 17:30 , Nicolas Cellier wrote:
You could inspect paste string: i bet these are LF when Squeak insists on having CR
2009/5/18 Damien Cassou <damien.cassou@gmail.com>:
On Mon, May 18, 2009 at 3:04 PM, Adrian Lienhard <adi@netstyle.ch> wrote:
When I copy text with line breaks from outside Pharo into a Pharo workspace all line breaks are lost and replaced by a rectangle. In version 10259 it was still working, and in version 10262 it is broken (I don't have images in between, but if it helps I can find out in exactly which version the problem was introduced).
When I inspect the pasted string, in the working version the line break is character value 13, in the current, broken version it is 10.
Is this related to the Unicode changes?
I have the same problem under Linux
-- Damien Cassou http://damiencassou.seasidehosting.st
"Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
participants (5)
-
Adrian Lienhard -
Damien Cassou -
Michael Rueger -
Nicolas Cellier -
Schwab,Wilhelm K