Skip Menu |

This queue is for tickets about the Win32-Clipboard CPAN distribution.

Report information
The Basics
Id: 57680
Status: open
Priority: 0/
Queue: Win32-Clipboard

People
Owner: Nobody in particular
Requestors: smujohnson [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: ->Set() method does not translate \n to \r\n
# the following code, when pasted in windows, attaches it all as if it's one string. in order to get it to not to do that, you have to manually make a substitution (or any other way) to convert \n's to \r\n's... use v5.10.0; use strict; use Win32::Clipboard; my $CLIP = Win32::Clipboard(); my $buffer = "happy\njohn\n\nof\nnewark"; say "Trying to copy the following buffer:"; say $buffer; $CLIP->Set($buffer);
Win32::Clipboard is clearly Win32 dependent. The standard line separator on Windows is "\r\n", not "\n". So it is the API user's job to convert those characters if needed. Also, transparently converting the data could break other applications. -- Olivier Mengué - http://o.mengue.free.fr/