Re: pasting into psql garbles text

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: pasting into psql garbles text
Date: 2009-06-27 18:26:49
Message-ID: b42b73150906271126n7fad32d4l2ae4a7e897d589f1@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Jun 27, 2009 at 1:38 PM, Greg Stark<gsstark(at)mit(dot)edu> wrote:
> On Sat, Jun 27, 2009 at 6:19 PM, Merlin Moncure<mmoncure(at)gmail(dot)com> wrote:
>> I've noticed over a wide variety of operating systems that when you
>> paste from an application into psql through a terminal (currently
>> using the default gnome terminal in ubuntu)
>
> You should get yourself a real terminal. Even Ubuntu hides xterm away somewhere.

I confirmed that xterm does not exhibit the issue. So this is at
least partially a terminal problem. However, xterm does not directly
accept pastes from wine clipboard apparently. it only works if I copy
it to gedit first, then into xterm.

The _only_ terminal application that exhibits this behavior is psql.
specifically, vim does not.

> What application are you pasting this text from? copy/paste in X
> requires the application you're pasting from to be surprisingly
> involved in the paste operation so perhaps it's behaving oddly.

It doesn't matter the source application...it borks regardless if I
copy from Source insight/wine (my normal editor), gedit, or another
gnome terminal. However, only psql exhibits this issue. For
example, when I use the buffer editor (mine is set to vim), everything
pastes in normally.

> Also, what version of readline, X, gnome-terminal, and whatever
> application you're pasting from are you using?

Source Insight/wine (or gedit, or whatever)
GNOME gnome-terminal 2.24.1.1
X.Org X Server 1.5.2
libreadline5 5.2-3build1

merlin

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2009-06-27 18:56:15 Re: pasting into psql garbles text
Previous Message Leif B. Kristensen 2009-06-27 17:49:52 Re: pasting into psql garbles text