You are not logged in.

#1 2012-05-18 23:34:26

ShionjiYuuko
Member
Registered: 2011-07-31
Posts: 67

urxvt non-latin copy-paste

Hello.

I've used tutorial from Archlinux wiki to get easy copy (ctrl+c) and paste (ctrl+v) in urxvt. The problem now is that urxvt can't paste non-latin characters correctly.

For example, I need to paste this to terminal:

Région parisienne

Guake terminal can render the above text correctly, while urxvt displays

Région parisienne

The same error also happens with Japanese characters, although I can type directly Japanese to urxvt using ibus-anthy.

The copy-paste extension uses a perl plugin shipped with standard urxvt installation.


始まりの荒野を独り もう歩き出してるらしい、僕は灰になるまで僕で有り続けたい
http://about.me/nnhnkn | http://identi.ca/nnhzkn

Offline

#2 2012-05-19 02:54:29

Ranmaru
Member
From: Japan
Registered: 2011-11-20
Posts: 60

Re: urxvt non-latin copy-paste

Does this also happen when you paste with a middle click?

I use urxvt-clipboard for copy paste in urxvt and with that, it works. I can paste Japanese and Chinese text in and out of urxvt without any problem.

Offline

#3 2012-05-19 12:58:46

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: urxvt non-latin copy-paste

post output of `locale` and `locale -a` in urxvt


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#4 2012-05-20 03:55:43

ShionjiYuuko
Member
Registered: 2011-07-31
Posts: 67

Re: urxvt non-latin copy-paste

@Ranmaru;
already have it xD. I can't use middle click, no mouse and my touchpad's buttons are a bit off.


@Mr. Pedobear:

[hinagiku@alice-tan urxvt-clipboard]# locale
LANG=en_US.UTF-8
LC_CTYPE=ja_JP.UTF8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
[hinagiku@alice-tan urxvt-clipboard]# locale -a
C
POSIX
de_DE.utf8
en_US

en_US.iso88591
en_US.utf8
ja_JP
ja_JP.eucjp
ja_JP.ujis
ja_JP.utf8
japanese
japanese.euc
ko_KR
ko_KR.euckr
ko_KR.utf8
korean
korean.euc

Should I set LANG to ja_JP? Even without Japanese locale, backslash is displayed as Yen sign in terminal and Qt apps.


始まりの荒野を独り もう歩き出してるらしい、僕は灰になるまで僕で有り続けたい
http://about.me/nnhnkn | http://identi.ca/nnhzkn

Offline

#5 2012-05-20 05:30:32

Ranmaru
Member
From: Japan
Registered: 2011-11-20
Posts: 60

Re: urxvt non-latin copy-paste

If you don't have a middle mouse button, you can use Shift+Ins on your keyboard which does the same thing. wink

Btw, you don't have to switch to a Japanese locale. As long as you've activated it, it should be fine. I have en_US.utf-8 as my main locale and everything works fine.

Last edited by Ranmaru (2012-05-20 05:35:20)

Offline

#6 2012-05-20 12:19:08

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: urxvt non-latin copy-paste

Only the encoding matters, what is before the ,UTF-8 does not matter at all.

Some app, possibly your browser, is probably set to some other encoding than utf8 though.

Btw, I would not build any non-utf8 locales at all.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB