You are not logged in.

#1 2018-05-26 16:39:37

Desdra
Member
Registered: 2018-05-15
Posts: 16

Non ASCII causing issues everywhere

I switched from Manjaro to Arch a few weeks ago, and since I've met some issues with non-ASCII characters like 'àéè'.
For instance,  autocompletion-python in Atom doesn't work if the script path have non-ASCII charcaters in it but work if it doesn't, another example I can't open in okular file with non-ASCII charcters in their path.

I looked in the forum and I found this : https://bbs.archlinux.org/viewtopic.php?id=229245 but their solution to delete kde-, qt-, fonts-related in ~/.cache but it doesn't work so I'm reaching out for you guys, do you have any idea ?

After some researchs i found that it might be KDE-related but I couldn't find any solution

Last edited by Desdra (2018-05-26 16:39:59)

Offline

#2 2018-05-26 17:37:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: Non ASCII causing issues everywhere

That thread you link to has a few commands to run, what do they return for you?

Offline

#3 2018-05-27 12:51:15

Desdra
Member
Registered: 2018-05-15
Posts: 16

Re: Non ASCII causing issues everywhere

Hi,

these are the outputs of the following commands :

locale

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=

locale -a

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
en_US.utf8

~/.bashrc

#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

env

GS_LIB=/home/arnaud/.fonts
KDE_FULL_SESSION=true
LANG=fr_FR.UTF-8
PROFILEHOME=
DISPLAY=:0
SHELL_SESSION_ID=6458123a2098451b928d01fe3c944388
COLORTERM=truecolor
QT_SCREEN_SCALE_FACTORS=eDP1=2;HDMI1=2;VIRTUAL1=2;
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_VTNR=1
PAM_KWALLET5_LOGIN=/run/user/1000/kwallet5.socket
XDG_SESSION_ID=c2
USER=arnaud
DESKTOP_SESSION=/usr/share/xsessions/plasma
PWD=/etc/profile.d
HOME=/home/arnaud
XDG_SESSION_TYPE=x11
XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop
KONSOLE_DBUS_SESSION=/Sessions/2
XDG_SESSION_DESKTOP=KDE
GTK_MODULES=canberra-gtk-module
MAIL=/var/spool/mail/arnaud
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.34
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XCURSOR_THEME=breeze_cursors
XDG_CURRENT_DESKTOP=KDE
KONSOLE_PROFILE_NAME=Default
XDG_SEAT=seat0
SHLVL=2
COLORFGBG=15;0
LANGUAGE=fr:en_US
WINDOWID=10485766
LOGNAME=arnaud
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/arnaud/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
QT_AUTO_SCREEN_SCALE_FACTOR=0
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
SESSION_MANAGER=local/arch-arnaud:@/tmp/.ICE-unix/897,unix/arch-arnaud:/tmp/.ICE-unix/897
_=/usr/bin/env
OLDPWD=/etc

localectl

   System Locale: LANG=en_US.UTF-8
       VC Keymap: fr_CH
      X11 Layout: ch
     X11 Variant: fr

Offline

#4 2018-05-27 13:12:02

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: Non ASCII causing issues everywhere

Hummm. I wonder why this could possibly fail...

re-read https://wiki.archlinux.org/index.php/Lo … ng_locales

Offline

#5 2018-05-27 13:27:10

Desdra
Member
Registered: 2018-05-15
Posts: 16

Re: Non ASCII causing issues everywhere

Thank you, after re-reading the locale wiki I managed to solve the problem.

To do it I regenerated fr_FR.UTF-8 and en_US.UTF-8 and deleted ~/.config/plasma-localerc and it worked.

But I don't understand why it didn't work before can someone explain it to me ?

Offline

#6 2018-05-27 13:31:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,849

Re: Non ASCII causing issues everywhere

We cannot possibly know what you did, but in effect you didn't generate the french locale. Either you never tried or previously failed to uncomment to entry or whatever. You could look up your shell history, comparing the timestamps of the config and the generated locales is no longer an option (since you already touched those files)

Offline

Board footer

Powered by FluxBB