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.
how to reinstall locales in slackware in such fashion like debian`s:
depkg-reconfigure locales
i had messed up my system playing with Gimp 2.10 (my stupidity)
i am getting error
Code:
Warning: couldn't set locale.
przemo@darkstar [~] $
(firefox:5568): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
przemo@darkstar [~] $
i am running 14.2 and instead of compiling it and all dependencies a just installed packages from current
It's not a good idea to mix packages from -current with 14.2 (or any other version of Slackware), because they are each built against specific versions of programs that are included with that version. When you install the -current version, it expects all the dependencies' versions to be the same as -current, but most of them on your computer are likely several versions behind, and that can lead to broken packages.
If you want something from -current, it's better to grab the source and try and build it. If it fails to build, it might require additional dependencies to be updated, which may end up being a lot more work than it'd be worth... but that's up to you
In /etc/profile.d, you have /etc/lang.sh, which sets your locale setup in bash, and /etc/profile.d/lang.csh, which sets it in csh (another shell).
If you have messed up your shell settings, you probably have a clean set in csh, because I imagine you use bash.
I should add ../en_GB.utf8/ should exist and contain all necessary files. Having still troubles reinstall locale for en_GB. And just for test try to set some other locale: French, Suahili whatever.
I am guessing that unicode_start works only on virtual console /dev/ttys not on socket connected to graphical terminal emulator. Say to put xterm in UTF-8 you can edit resources for xterm or press ctrl-RB (right button) in xterm - menu appears with UTF-8 as an option. Say rxvt does not support unicode natively at all, I mean the one shipped with Slackware. One needs version rxvt-unicode, say from slackbuilds.
Last edited by igadoter; 10-16-2018 at 03:23 AM.
Reason: Addons
Glibc is part of the toolchain, in that all packages are compiled against a set of kernel headers, glibc & gcc. It's easier to change gcc than the other two.
Make up your mind what version of slackware you're running. Go there. If you need stuff from current, do without, or upgrade to current.
The last thing I would advise is farting with the toolchain. Take one set, & the packages compiled against it, and you'll be ok.
#locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
almost there but still:
locale: Cannot set LC_ALL to default locale: No such file or directory
Code:
localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8
LC_NAME: field `name_gen' not defined
LC_ADDRESS: field `country_name' not defined
LC_ADDRESS: field `country_post' not defined
LC_ADDRESS: field `country_isbn' not defined
LC_IDENTIFICATION: field `audience' not defined
LC_IDENTIFICATION: field `application' not defined
LC_IDENTIFICATION: field `abbreviation' not defined
localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8
LC_NAME: field `name_gen' not defined
LC_ADDRESS: field `country_name' not defined
LC_ADDRESS: field `country_post' not defined
LC_ADDRESS: field `country_isbn' not defined
LC_IDENTIFICATION: field `audience' not defined
LC_IDENTIFICATION: field `application' not defined
LC_IDENTIFICATION: field `abbreviation' not defined
Have a look at the file /usr/share/i18n/locales/en_GB, as that's the input file for localedef. You well see the the mentioned fields are indeed missing and there's nothing that Slackware cans do about it as it is the file shipped in the source archive. If you are worried by this issue, you might want to get in touch with the glibc devs. Links on this page.
Other than that, by best advice is: reinstall from scratch and don't install packages intended for another Slackware version.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.