Solved funky characters with curl on rxvt

Hello forum,

I have these "a" like characters appearing on rxvt terminal while using curl. Can someone please set me on the right path to make appropriate corrections? I have tried installing various fonts but I have not been successful inf fixing the issue. Please shot thumbnail.


snap.png
 
Set in $HOME/.login_conf
Code:
me:\
    :charset=UTF-8:\
    :lang=C.UTF-8:
or set system wide in /etc/login.conf
Code:
default:\
    ....
    :umask=022:\
    :charset=UTF-8:\
    :lang=C.UTF-8:
run cap_mkdb /etc/login.conf afterwards. Replace lang if necessary to your locale.
 
Set in $HOME/.login_conf
Code:
me:\
    :charset=UTF-8:\
    :lang=C.UTF-8:
or set system wide in /etc/login.conf
Code:
default:\
    ....
    :umask=022:\
    :charset=UTF-8:\
    :lang=C.UTF-8:
run cap_mkdb /etc/login.conf afterwards. Replace lang if necessary to your locale.
Thanks for the reply. /etc/login.conf seems to be pointing to Russian. What would be the code for the US?

Code:
#
# Russian Users Accounts. Setup proper environment variables.
#
russian|Russian Users Accounts:\
    :charset=UTF-8:\
    :lang=ru_RU.UTF-8:\
    :tc=default:
 
/etc/login.conf seems to be pointing to Russian. What would be the code for the US?
Why do you say it's pointing to russian? The default login class is default:\ . If your login class is not russian then the appropriate place for US locale is under default:\. It makes no sense to set US locale under login class russian.
 
My local language should be en_US since I am in the US not Russian. I changed the file to:

Code:
#
# Russian Users Accounts. Setup proper environment variables.
#
#russian|Russian Users Accounts:\
#    :charset=UTF-8:\
#    :lang=ru_RU.UTF-8:\
#    :tc=default:

#American Users Accounts.
             [...]
             :charset=UTF-8:\
             :lang=en_US.UTF-8:\
#          :umask=022:
             :tc=default:

But still not working. Did I screw up anything else here. I ran
Code:
cap_mkdb /etc/login.conf
as well.
 
#American Users Accounts.
[...]
:charset=UTF-8:\
:lang=en_US.UTF-8:\
# :umask=022:
:tc=default:
For this to work the login class needs a name like default or russian, but you haven't specified a name for the class and the class must be assigned to the user. See /etc/master.passwd, the fifth field after user id and group id specifies the login class, it's empty if it's default (: :). Don't add unnecessary entries. Please delete those.

Open /etc/login.conf with an editor append charset and lang at the end of the default:\ login class
Code:
default:\
    :passwd_format=sha512:\
    :copyright=/etc/COPYRIGHT:\
    :welcome=/etc/motd:\
    :setenv=BLOCKSIZE=K:\
    :mail=/var/mail/$:\
    :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
    :nologin=/var/run/nologin:\
    :cputime=unlimited:\
    :datasize=unlimited:\
    :stacksize=unlimited:\
    :memorylocked=64K:\
    :memoryuse=unlimited:\
    :filesize=unlimited:\
    :coredumpsize=unlimited:\
    :openfiles=unlimited:\
    :maxproc=unlimited:\
    :sbsize=unlimited:\
    :vmemoryuse=unlimited:\
    :swapuse=unlimited:\
    :pseudoterminals=unlimited:\
    :kqueues=unlimited:\
    :umtxp=unlimited:\
    :priority=0:\
    :ignoretime@:\
    :umask=022:\
    :charset=UTF-8:\
    :lang=en_US.UTF-8:
Run cap_mkdb /etc/login.conf, log out log in the user.
 
Those sections look like so but I still do get the same characters in the terminal

Code:
default:\
    :passwd_format=sha512:\
    :copyright=/etc/COPYRIGHT:\
    :welcome=/etc/motd:\
    :setenv=BLOCKSIZE=K:\
    :mail=/var/mail/$:\
    :path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin ~/bin:\
    :nologin=/var/run/nologin:\
    :cputime=unlimited:\
    :datasize=unlimited:\
    :stacksize=unlimited:\
    :memorylocked=64K:\
    :memoryuse=unlimited:\
    :filesize=unlimited:\
    :coredumpsize=unlimited:\
    :openfiles=unlimited:\
    :maxproc=unlimited:\
    :sbsize=unlimited:\
    :vmemoryuse=unlimited:\
    :swapuse=unlimited:\
    :pseudoterminals=unlimited:\
    :kqueues=unlimited:\
    :umtxp=unlimited:\
    :priority=0:\
    :ignoretime@:\
    :umask=022:
    :charset=UTF-8:\
    :lang=en_US.UTF-8:

#
# A collection of common class names - forward them all to 'default'
# (login would normally do this anyway, but having a class name
#  here suppresses the diagnostic)
#
standard:\
    :tc=default:
xuser:\
    :tc=default:
staff:\
    :tc=default:
daemon:\
    :mail@:\
    :memorylocked=128M:\
    :tc=default:
news:\
    :tc=default:
dialer:\
    :tc=default:

#
# Root can always login
#
# N.B.  login_getpwclass(3) will use this entry for the root account,
#       in preference to 'default'.
root:\
    :ignorenologin:\
    :memorylocked=unlimited:\
    :tc=default:

#
# Russian Users Accounts. Setup proper environment variables.
#
russian|Russian Users Accounts:\
    :charset=UTF-8:\
    :lang=ru_RU.UTF-8:\
    :tc=default:
 

Code:
    .....
    :priority=0:\
    :ignoretime@:\
    :umask=022:
    :charset=UTF-8:\
    :lang=en_US.UTF-8:

:umask=022: is missing a backslash ( \ ) at the line end. All lines must have a backslash at the line end, except the last one. After editing run cap_mkdb /etc/login.conf again. If the user using curl is logged in, log out, log in again.
 
Back
Top