View previous topic :: View next topic |
Author |
Message |
juantxorena Apprentice
Joined: 19 Mar 2006 Posts: 201 Location: The Shire
|
Posted: Thu May 25, 2017 9:10 am Post subject: locale madness (systemd) |
|
|
Hi everybody,
since some days or weeks ago, the locale settings on my system are messed up, without doing anything. I use 3 locales: en_GB.UTF-8, de_DE.UTF-8 and es_ES.UTF-8. I want the software in english, and I use the other 2 for things like LC_NUMERIC or LC_MONETARY, and I want to have the option to change the language from time to time.
Most of the software is in english (gnome and kde), but some console applications, are in spanish (man) or german (genlop, but now it's "fixed", giving this warning: "setlocale: unsupported locale setting"). If I execute "locale" I get this, no matter if logged as root or any other user:
Code: |
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=nds_DE.UTF-8
LC_CTYPE="nds_DE.UTF-8"
LC_NUMERIC="nds_DE.UTF-8"
LC_TIME="nds_DE.UTF-8"
LC_COLLATE="nds_DE.UTF-8"
LC_MONETARY="nds_DE.UTF-8"
LC_MESSAGES="nds_DE.UTF-8"
LC_PAPER="nds_DE.UTF-8"
LC_NAME="nds_DE.UTF-8"
LC_ADDRESS="nds_DE.UTF-8"
LC_TELEPHONE="nds_DE.UTF-8"
LC_MEASUREMENT="nds_DE.UTF-8"
LC_IDENTIFICATION="nds_DE.UTF-8"
LC_ALL=
|
I have no idea what "nds_DE" is, and how it came there.
The content of /etc/locale.conf looks ok:
Code: |
LC_MONETARY=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LANG=en_GB.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=C
LC_PAPER=de_DE.UTF-8
LC_MESSAGES=en_GB.UTF-8
|
and I have only 4 locales in /etc/locale.gen
Code: |
es_ES.UTF-8 UTF-8
en_US.UTF-8 UTF-8
en_GB.UTF-8 UTF-8
de_DE.UTF-8 UTF-8
|
I've tried setting the locales with localectl from systemd, with eselect, writing directly in the /etc/locale.conf file, log-out and log-in, rebooting, everything, nothing changes. Here's my emerge --info, which also shows the wrong "LANG" variable even though is not set in the make.conf (I guess it takes it from the system):
Code: |
setlocale: unsupported locale setting
setlocale: unsupported locale setting
Portage 2.3.5 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-3537U_CPU_@_2.00GHz-with-gentoo-2.3
KiB Mem: 16281488 total, 734524 free
KiB Swap: 4194300 total, 4194300 free
Timestamp of repository gentoo: Wed, 24 May 2017 22:30:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash: 4.3_p48-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.24.1-r1::gentoo
dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake: 3.7.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.3::gentoo
sys-apps/openrc: 0.26.2::gentoo
sys-apps/sandbox: 2.10-r3::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils: 2.26.1::gentoo
sys-devel/gcc: 5.4.0-r3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.23-r3::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
x-portage
location: /usr/local/portage
masters: gentoo
priority: 0
hossie
location: /var/lib/layman/hossie
sync-type: laymansync
sync-uri: https://git.hossie.de/scm/gen/gentoo-overlay.git
masters: gentoo
priority: 50
java
location: /var/lib/layman/java
sync-type: laymansync
sync-uri: git://anongit.gentoo.org/proj/java.git
masters: gentoo
priority: 50
kde
location: /var/lib/layman/kde
sync-type: laymansync
sync-uri: git://anongit.gentoo.org/proj/kde.git
masters: gentoo
priority: 50
science
location: /var/lib/layman/science
sync-type: laymansync
sync-uri: git://anongit.gentoo.org/proj/sci.git
masters: gentoo
priority: 50
sunrise
location: /var/lib/layman/sunrise
sync-type: laymansync
sync-uri: git://anongit.gentoo.org/proj/sunrise-reviewed.git
masters: gentoo
priority: 50
torbrowser
location: /var/lib/layman/torbrowser
sync-type: laymansync
sync-uri: git://github.com/MeisterP/torbrowser-overlay.git
masters: gentoo
priority: 50
vortex
location: /var/lib/layman/vortex
sync-type: laymansync
sync-uri: git://github.com/nE0sIghT/vortex-overlay.git
masters: gentoo
priority: 50
Installed sets: @spring
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ftree-vectorize"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ftree-vectorize"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going --buildpkg"
FCFLAGS="-march=native -O2 -pipe -ftree-vectorize"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -ftree-vectorize"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="nds_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j4 -l6"
PKGDIR="/usr/portage/packages"
PORTAGE_BUNZIP2_COMMAND="lbunzip2"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="lbzip2"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 amr archive asf audiofile avx bash-completion blas bluetooth bzip2 cairo cdda cdio cdr cjk cli cracklib crypt css cups curl cxx dbus declarative djvu dri dts dvd dvdr eigen emboss enca encode epub exif expat fam ffmpeg fftw firefox flac fontconfig fortran fuse gdbm geoip gif glamor glut gme gmp gnome-keyring gnuplot gphoto2 gpm gstreamer gtk gtk3 hdf5 iconv icu idn imagemagick ipv6 javascript jemalloc jit jpeg jpeg2k kde kipi kpathsea kwallet lame lapack latex lcms libnotify libsoxr lm_sensors lua lzma mad mms mng modules mp3 mp4 mpeg mplayer mtp multilib musepack musicbrainz ncurses network networkmanager nfs nls nptl nsplugin ogg openal opencl openexr opengl openmp pam pango pch pcre pdf pgo phonon plasma plotutils png policykit postscript ppds pulseaudio qml qt3support qt4 qt5 quvi readline real samba sdl seccomp semantic-desktop session smp sndfile speex spell sse3 sse4 sse4_1 ssl ssse3 startup-notification svg syslog systemd taglib tbb tcpd telepathy theora threads threadsafe tiff truetype udev udisks unicode upower usb v4l vaapi vala vcd vim-syntax vorbis vpx wavpack webp widgets wifi wmf wxwidgets x264 x265 xattr xcb xcomposite xinerama xml xscreensaver xv xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="en en-GB en-US es es-ES de de-DE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver pdfimport scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="en en_GB en_US es es_ES de de_DE" NETBEANS_MODULES="apisupport enterprise groovy java javafx profiler webcommon websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="battery brightness clock multiload-nandhp power trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
Thanks for the help _________________ I cannot write English very well. Please, correct any mistake so that I can improve. |
|
Back to top |
|
|
C5ace Guru
Joined: 23 Dec 2013 Posts: 472 Location: Brisbane, Australia
|
Posted: Thu May 25, 2017 9:45 am Post subject: |
|
|
Had a similar problem some time ago with a new installation of Gentoo when trying systemd with Xfce and LANG:
en_AU ISO-8859-1
en_AU.UTF-8 UTF-8
ja_JP.EUC-JP EUC-JP
ja_JP.UTF-8 UTF-8
ja_JP EUC-JP
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
Tried for 2 days to get it to work. Crazy problems with systemd. Wiped everything and installed Gentoo with OpenRC and Xfce. Worked immediately without problems. |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181 Location: Italy
|
Posted: Thu May 25, 2017 10:32 am Post subject: |
|
|
@juantxorena: what's the output of:
? |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3337 Location: Rasi, Finland
|
Posted: Thu May 25, 2017 12:02 pm Post subject: |
|
|
@juantxorena: Also if you could run following command also: shell cmd: | systemctl --version |
This is mainly becuase I want to avoid this problem. So I can possibly make some preemptive package masking... _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
juantxorena Apprentice
Joined: 19 Mar 2006 Posts: 201 Location: The Shire
|
Posted: Thu May 25, 2017 1:12 pm Post subject: |
|
|
fturco wrote: | @juantxorena: what's the output of:
? |
Code: |
System Locale: LANG=en_GB.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE=C
LC_MONETARY=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
VC Keymap: n/a
X11 Layout: n/a
|
Apparently correct, different to the output of locale
Zucca wrote: | @juantxorena: Also if you could run following command also: shell cmd: | systemctl --version |
This is mainly becuase I want to avoid this problem. So I can possibly make some preemptive package masking... |
Code: |
systemd 233
+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN default-hierarchy=hybrid
|
Updated on 27th April, probably around the time the errors started to happen? (I'm not sure) _________________ I cannot write English very well. Please, correct any mistake so that I can improve. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3337 Location: Rasi, Finland
|
Posted: Thu May 25, 2017 2:59 pm Post subject: |
|
|
juantxorena wrote: | Zucca wrote: | @juantxorena: Also if you could run following command also: shell cmd: | systemctl --version |
This is mainly becuase I want to avoid this problem. So I can possibly make some preemptive package masking... |
Code: |
systemd 233
+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD +IDN default-hierarchy=hybrid
|
Updated on 27th April, probably around the time the errors started to happen? (I'm not sure) | I have the same version, but I haven't encountered problems.
As for my locale - I've only set LANG to en_US.utf8. Layouts are all finnish for me, obvious reasons.
Whatever the case may be I want to know what's causing it... _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|