Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#740 closed defect (fixed)

no paste (Windows)

Reported by: gz Owned by:
Priority: normal Milestone:
Component: Cocotron Version: trunk
Keywords: Cc:


In the IDE on Windows, Paste from other apps doesn't work (Copy does work - i.e. I can copy stuff in the IDE and paste in, e.g. Emacs, but not vice versa)

Change History (3)

comment:1 Changed 9 years ago by rme

(In [14395]) 32-bit Windows image without crazy special binding index values. (See ticket:740)

comment:2 Changed 9 years ago by gb

  • Resolution set to fixed
  • Status changed from new to closed

(In [14481]) Pasting clipboard content from other applications doesn't work under Cocotron, because of confusion about the format and endianness of that data. (What actually gets pasted is a string with byte-reversed character codes, which may not be visible even though it make take up space in the buffer.)

Try to work around that: if more than half of the (16-bit) characters in the string obtained from the clipboard have 0s in their low bytes, assume that the string is byte-reversed 8-bit text and reverse those characters again. This can be fooled, so this workaround should be removed when the underlying Cocotron bug is fixed.

For the sake of argument, this fixes ticket:740, though we should report the underlying Cocotron confusion and try to render the workaround unnecessary.

Note: See TracTickets for help on using tickets.