You are not logged in.

#1 2008-06-28 13:13:43

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

[SOLVED] urxvt and UTF-8 problem

Hello.
I run urxvt in Xmonad, and whenever I try to use the MODKEY+RETURN hotkey, I get a terminal without UTF-8 support. I read this topic, but for me it occurs not only in Xmonad, but also in dwm, wmii and ratpoison.
However, if I call urxvt from inside a terminal, then it appears with unicode support.
Here is my .Xdefaults:

.Xdefaults wrote:

*font: xft:Terminus:pixelsize=13

*foreground: #bbbbbb
*background: #222222



urxvt*scrollBar: false
urxvt*saveLines: 10000
URxvt.imLocale: pt_BR.utf8
urxvt.secondaryScroll: true

Last edited by Guilherme_Augusto (2008-06-30 14:25:34)


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#2 2008-06-28 13:39:58

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

Re: [SOLVED] urxvt and UTF-8 problem

URxvt*termName: rxvt-unicode


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

Offline

#3 2008-06-28 13:48:10

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

Re: [SOLVED] urxvt and UTF-8 problem

Hi, Mr. Elendig. Thanks for the quick reply.
It doesn't seem to work, anyway. sad


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#4 2008-06-28 13:50:21

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

Re: [SOLVED] urxvt and UTF-8 problem

can you paste the locale line in rc.conf, and the output of locale -a ?


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

Offline

#5 2008-06-28 13:59:55

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

Re: [SOLVED] urxvt and UTF-8 problem

Here they are:

[~] $ cat /etc/rc.conf | grep LOCALE
LOCALE=pt_BR.utf8
[~] $ locale -a
C
POSIX
pt_BR
pt_BR.iso55891
pt_BR.utf8


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#6 2008-06-28 14:56:37

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

Re: [SOLVED] urxvt and UTF-8 problem

Tried without URxvt.imLocale: pt_BR.utf8 ?


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

Offline

#7 2008-06-28 14:59:43

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

Re: [SOLVED] urxvt and UTF-8 problem

Yes. No difference. sad
I tried your .Xdefaults from the dotfiles in your sign, and it doesn't help either.


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#8 2008-06-28 15:14:12

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

Re: [SOLVED] urxvt and UTF-8 problem

If you tried mine, then make sure you got /usr/share/fonts/local  in your fontpath in xorg.conf


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

Offline

#9 2008-06-28 15:24:53

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

Re: [SOLVED] urxvt and UTF-8 problem

I do. I just realized that I made some changes in the fonts stuff a while ago when I tried to install awesome3-git. It has some weird libxft-git dependencies, I guess. I'll try to rebuild all of these, and will post here as soon as it gets done.


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#10 2008-06-28 15:26:45

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

Re: [SOLVED] urxvt and UTF-8 problem

You don't need to use xft with urxvt. I prefer not to, since xft is slow.


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

Offline

#11 2008-06-29 03:09:30

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

Re: [SOLVED] urxvt and UTF-8 problem

Ah, thanks, I removed the Xft stuff.
Well, I made some progress now. I have this in my .zshenv, to log directly into X case I use the first terminal (/dev/vc/1):

.zshenv wrote:

if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/vc/1 ]]; then
   startx >& .myXLog
fi

Looks like, if I log into another terminal (that is, logging into text mode and invoking X by typing 'startx'), the problem magically disappears. Any ideas?

Last edited by Guilherme_Augusto (2008-06-29 03:49:50)


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#12 2008-06-29 21:40:53

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

Re: [SOLVED] urxvt and UTF-8 problem

Uhm, zsh? Try symlinking /etc/zprofile to /etc/profile


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

Offline

#13 2008-06-30 14:24:45

Guilherme_Augusto
Member
From: Brazil
Registered: 2008-05-31
Posts: 8

Re: [SOLVED] urxvt and UTF-8 problem

Works great!

Thank you very much! big_smile


|_|o|_|
|_|_|o|
|o|o|o|

Offline

#14 2008-07-01 21:15:45

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

Re: [SOLVED] urxvt and UTF-8 problem

Here is the explanation why it works:
When you log in using zsh is tries to source /etc/zprofile _not_ /etc/profile, and therefor the /etc/profile.d/locale.sh neither get sourced, and so the locale ain't set right.


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

Offline

#15 2012-03-17 11:07:11

AlmostSurelyRob
Member
From: UK
Registered: 2012-03-17
Posts: 77

Re: [SOLVED] urxvt and UTF-8 problem

Dear All,

I seem to have a similar problem. I am running xmonad. My locale and locale -a are as follows

~$locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
~$locale -a
C
POSIX
pl_PL
pl_PL.iso88592
pl_PL.utf8
polish

The .Xresources

$cat .Xresources 
! xterm ----------------------------------------------------------------------

xterm*geometry:           80x25
xterm*faceName:           terminus:bold:pixelsize=18
!xterm*font:              -*-dina-medium-r-*-*-16-*-*-*-*-*-*-*
xterm*dynamicColors:      true
xterm*utf8:               1
xterm*eightBitInput:      true
xterm*saveLines:          512
xterm*scrollKey:          true
xterm*scrollTtyOutput:    false
xterm*scrollBar:          true
xterm*rightScrollBar:     true
xterm*jumpScroll:         true
xterm*multiScroll:        true
xterm*toolBar:            false


! urxvt ----------------------------------------------------------------------
URxvt.foreground: white
!Set transparency
URxvt.depth: 100
URxvt*background: rgba:0000/0000/0000/cccc

URxvt.fadeColor: [0]black

URxvt.saveLines:10000
URxvt.scrollBar: false
!URxvt.scrollstyle: rxvt

!URxvt*font: xft:DejaVu Sans Mono:size=13
!URxvt*utf8:               1
URxvt*termName: rxvt-unicode
URxvt.imLocale: pl_Pl.utf8

I have already tried many variants but nothing seems to work. Also I changed the locale to pl_PL.utf8 temporarily but it didn't help. Generally, I would like to have an English language settings but with the possibility to write and display polish characters. So far only my browser (firefox) has this feature. 

I will appreciate any assistance on this issue.

Last edited by AlmostSurelyRob (2012-03-17 11:07:39)

Offline

#16 2012-03-17 12:31:34

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

Re: [SOLVED] urxvt and UTF-8 problem

Just build the en_US.utf8 locale and use it. You do NOT want to use POSIX
(or en_GB is you want proper english tongue)

Also, please do NOT necrobump 4 year old threads.

20101115002739_181_necropost.png

Last edited by Mr.Elendig (2012-03-17 12:34:42)


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

Offline

#17 2012-03-17 14:32:29

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [SOLVED] urxvt and UTF-8 problem

AlmostSurelyRob, welcome to the forums. Please have a look at our Forum Etiquette, esp. the section on Old Threads/"Necro-Bumping".

You may always open an thread of your own if you experience a problem which you consider similar, and the link back to such a relevant, older thread.

Closing this thread.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB