Thu Mar 05 16:45:46 2009: Request 43889 was acted upon. Transaction: Ticket created by kwittr...@web.de Queue: Win32-Clipboard Subject: Win32::Clipboard::GetText() doesn't convert newlines Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: kwittr...@web.de Status: new Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=43889 >
Dear maintainer of Win32::Clipboard, MS Windows uses \r\n for Newline, while Perl uses \n. So Win32::Clipboard::GetText() should perform a "$text =~ s/\r$//mg;" before returning the text. Otherwise the \r is treated as part of the text by Perl. I use Windows XP with SP3 and ActivePerl 5.8.8. I observed the error with Win32::Clipboard versions 0.52 and 0.55. Regards Klaus Wittrock