You are not logged in.

#1 2012-11-25 22:38:45

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

[solved] Arch Linux character set issue

Hi all, I have this problem on Arch linux only. Does not occur on any other OS I use (including Debian, Debian kFreeBSD, FreeBSD, Ubuntu).

Problem: quotes and backquotes are not displayed properly in the terminal on PuTTY in Windows.

Screenshot of problem:
problem.png

How it should look like:
correct.png

Info: using zsh and GNU screen

locale:

% locale -a
C
POSIX
en_CA.utf8
en_DK.utf8

% locale
LANG=en_CA.utf8
LC_CTYPE="en_CA.utf8"
LC_NUMERIC="en_CA.utf8"
LC_TIME=en_DK.utf8
LC_COLLATE=C
LC_MONETARY="en_CA.utf8"
LC_MESSAGES="en_CA.utf8"
LC_PAPER="en_CA.utf8"
LC_NAME="en_CA.utf8"
LC_ADDRESS="en_CA.utf8"
LC_TELEPHONE="en_CA.utf8"
LC_MEASUREMENT="en_CA.utf8"
LC_IDENTIFICATION="en_CA.utf8"
LC_ALL=

The settings (.zshrc, .screenrc, locale) are exactly the same on all operating systems I've tried. Also, the PuTTY settings are exactly the same, and are correctly set to use UTF8. Arch Linux is the only one for which quotes are not displayed correctly.

Last edited by solarwind (2012-11-26 00:33:46)

Offline

#2 2012-11-25 22:52:12

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: [solved] Arch Linux character set issue

to clarify : you connect remotely to the archlinuxbox from windows using putty ?

Does the problem also occur if you are logged in locally on the archlinux box ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2012-11-25 23:08:59

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: [solved] Arch Linux character set issue

Lone_Wolf wrote:

to clarify : you connect remotely to the archlinuxbox from windows using putty ?

Does the problem also occur if you are logged in locally on the archlinux box ?

Sorry, I should have added more information. Yes, I connect remotely using PuTTY. The problem does not occur when connecting from an Arch Linux or Mac OS client.

The server is headless, it doesn't have a video card, so I can't test it by directly connecting to it.

Offline

#4 2012-11-26 00:01:57

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [solved] Arch Linux character set issue

solarwind wrote:

Hi all, I have this problem on Arch linux only. Does not occur on any other OS I use (including Debian, Debian kFreeBSD, FreeBSD, Ubuntu).

I wonder if this is different on Arch:

echo $TERM

Or just check all vars:

export

That's in BASH - presumably the same in ZSH.

Offline

#5 2012-11-26 00:29:58

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: [solved] Arch Linux character set issue

brebs wrote:
solarwind wrote:

Hi all, I have this problem on Arch linux only. Does not occur on any other OS I use (including Debian, Debian kFreeBSD, FreeBSD, Ubuntu).

I wonder if this is different on Arch:

echo $TERM

Or just check all vars:

export

That's in BASH - presumably the same in ZSH.

% export
EDITOR=emacs
HOME=/home/xyz
LANG=en_CA.utf8
LC_COLLATE=C
LC_TIME=en_DK.utf8
LOGNAME=xyz
MAIL=/var/mail/xyz
NCURSES_NO_UTF8_ACS=1
OLDPWD=/home/xyz/.emacs.d
PATH=/usr/bin:/bin:/usr/sbin:/sbin
PWD=/home/xyz
SHELL=/bin/zsh
SHLVL=1
SSH_CLIENT='192.168.1.3 36006 22'
SSH_CONNECTION='192.168.1.3 36006 192.168.1.4 22'
SSH_TTY=/dev/pts/0
STY=11041.pts-0.server
TERM=screen-256color
TERMCAP='SC|screen-256color|VT 100/ANSI X3.64 virtual terminal:\
        :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
        :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        :do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
        :le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
        :li#40:co#130:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
        :cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
        :im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
        :ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
        :ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
        :se=\E[23m:mb=\E[5m:md=\E[1m:mr=\E[7m:me=\E[m:ms:\
        :Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
        :vb=\Eg:G0:as=\E(0:ae=\E(B:\
        :ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
        :po=\E[5i:pf=\E[4i:k0=\E[10~:k1=\EOP:k2=\EOQ:k3=\EOR:\
        :k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:\
        :k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:F3=\E[1;2P:\
        :F4=\E[1;2Q:F5=\E[1;2R:F6=\E[1;2S:F7=\E[15;2~:\
        :F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:kb=^H:K2=\EOE:\
        :kB=\E[Z:kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:*7=\E[1;2F:\
        :#2=\E[1;2H:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:\
        :%i=\E[1;2C:kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:\
        :kN=\E[6~:kP=\E[5~:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:\
        :kr=\EOC:kl=\EOD:km:'
USER=xyz
WINDOW=0
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_ID=80
_=export

Solved. I deleted the PuTTY settings, and recreated them. Seems to have been some weird, random, corrupted settings in PuTTY.

For anyone else's info, how to make sure this works is:
* Generate your locales, set your language to en_CA.UTF-8, for example. export LANG=en_CA.UTF-8
* Set PuTTY to use UTF-8 in the Window -> Translation section.
* Start screen with the -U option (for example, "screen -xRRU"). The -U tells screen to use unicode.

Last edited by solarwind (2012-11-26 00:33:33)

Offline

Board footer

Powered by FluxBB