SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi.
I am using Slackware 14.2 with xfce. Everything was working fine, until i tried to update system.
Now i have problem with locale. i can't save files with non latin characters. The warning i get is
Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale.
I changed /etc/profile.d/lang.sh to have
export LANG=el_GR.utf8
export LC_COLLATE=C
but nothing changed.
When i type locale, i get: Cannot set LC_ALL to default locale.
Not sure how Slack is set up but here's what I do. In file /etc/locale.gen in Debian are pretty much every locale, all of which are commented out except the locale for my region. In Gentoo, all it had was "C.UTF8 UTF-8", so I added "en_US.UTF-8 UTF-8" and my locale. After saving the file with the locales I want keeping the C locale also, I ran a couple commands to set the locale.
Below are the locales I found in Debian to match yours:
Add or uncomment the ones you want your system to have/use in /etc/locale.gen, after saving the /etc/local.gen file, as root or sudo run command ----> locale-gen
It will come back saying it found the locales you enabled printing them out, now set the locale with the next command:
Code:
localectl set-locale el_GR.UTF-8
It should now be set and should be shown in /etc/locale.conf or /etc/default/locale Other examples here.
Thanks for the reply. Unfortunately these don't work on Slackware. I believe something is messed real bad after the update. I read in the forum that someone with a similar problem had noticed that
/lib64/ld-linux-x86-64.so.2 -> ld-2.29.so
instead of
/lib64/ld-linux-x86-64.so.2 -> ld-2.23.so
He said that upgradepkg glibc-solibs-2.23-x86_64-4_slack14.2.txz took care of that.
In my case /lib64/ld-linux-x86-64.so.2 -> ld-2.27.so
and i also have a ld-2.23.so in the same folder.
I tried to do the same thing and upgradepkg but nothing.
i don't understand how this works, or if it has to anything with the locale problem.
I may be wrong with this.
I must have broken sth.
If i type
ldd --version
i get
ldd (GNU libc) 2.23
then
ldd `which ls` | grep libc
i get
libcap.so.2 => /lib64/libcap.so.2 (0x00007fb99b69d000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb99b2b3000)
and finally
/lib64/libc.so.6
i get
GNU C Library (GNU libc) stable release version 2.27.
Could this be the cause of locale problems? Is it something repairable?
I must have broken sth.
If i type
ldd --version
i get
ldd (GNU libc) 2.23
then
ldd `which ls` | grep libc
i get
libcap.so.2 => /lib64/libcap.so.2 (0x00007fb99b69d000)
libc.so.6 => /lib64/libc.so.6 (0x00007fb99b2b3000)
and finally
/lib64/libc.so.6
i get
GNU C Library (GNU libc) stable release version 2.27.
Could this be the cause of locale problems? Is it something repairable?
Yes, looks like something is wrong on your system.
I'm running a fully-patched 14.2 (with multilib), and here is what I get:
Code:
# ldd --version
ldd (GNU libc) 2.23
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
# ldd $(which ls) | grep libc
libcap.so.2 => /lib64/libcap.so.2 (0x00007febe9259000)
libc.so.6 => /lib64/libc.so.6 (0x00007febe8e90000)
# /lib64/libc.so.6
GNU C Library (GNU libc) stable release version 2.23, by Roland McGrath et al.
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 5.3.0.
Available extensions:
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
Additionally:
Code:
# ls /var/log/packages/glibc*
/var/log/packages/glibc-2.23_multilib-x86_64-4alien
/var/log/packages/glibc-i18n-2.23_multilib-x86_64-4alien
/var/log/packages/glibc-profile-2.23_multilib-x86_64-4alien
/var/log/packages/glibc-solibs-2.23_multilib-x86_64-4alien
/var/log/packages/glibc-zoneinfo-2021a-noarch-1_slack14.2
Ok, you have installed either glibc-solibs-2.27-x86_64-4 or glibc-2.27-x86_64-4, or both (or the corresponding multilib packages). And then reinstalled the correct 2.23. Unfortunately, glibc is not "downgradeable" to 2.23. After and including glibc-2.27, the glibc install script also allows downgrading but not before 2.27. Where did you get that glibc-2.27 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.