[Geany] Problems with copy-paste in Windows version

Enrico Tröger enrico.troeger at xxxxx
Thu Jan 31 14:03:27 UTC 2008


On Wed, 30 Jan 2008 09:18:49 +0100, Joerg Desch <jd.vvd at web.de> wrote:

> On Tue, 29 Jan 2008 18:14:01 +0100
> Enrico Tröger <enrico.troeger at uvena.de> wrote:
> 
> Hi,
> 
> > > If I mark (a part or all) the file, copy it into the clipboard and
> > > paste it into geany, it is still correct. If I paste it into another
> > > editor, the line endings look like 0x0D, 0x0D, 0x0A, e.g. 0x0D
> > > appears twice (adding an extra line in the other editor and sometimes
> > > even compiler errors if it is source code)...
> > Thanks for reporting. I never noticed this. Very strange problem.
> > I'm not yet sure why this happens, probably there is something wrong
Now I know why it happens. The selected text is converted into LF line
endings before actually copying it to the clipboard. This is done by
Scintilla. Simply skipping this or explicitly converting it to CRLF
would solve the problem, at least it did for me when testing with
Windows Notepad. I'm not yet sure whether this is really the solution.
To get some more information, I asked on the Scintilla mailing list
because it also affects SciTE and other Scintilla based applications
built on Windows with GTK. I'll keep you updated.

> I've seen such a character combination while using 'unix line format' with windows. The application causing the trouble doesn't know this format and (somehow) expand it into 0x0D, 0x0D, 0x0A. Maybe that's the problem.
I think this is another problem, not related to Geany.


Regards,
Enrico

-- 
Get my GPG key from http://www.uvena.de/pub.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.geany.org/pipermail/users/attachments/20080131/db5bd780/attachment.pgp>


More information about the Users mailing list