LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-12-2018, 10:59 AM   #1
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Rep: Reputation: Disabled
localization problem


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 [~] $
for root all seems to be ok
 
Old 10-12-2018, 02:39 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If root is ok, your locales are probably ok. I have gimp-2.10.4 no problem.

Since when has your hostname been the default 'darkstar'?

Sounds like your user configuration is the issue. What did you do with gimp-2.10?
 
Old 10-12-2018, 03:28 PM   #3
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
i am running 14.2 and instead of compiling it and all dependencies a just installed packages from current

those:
(code)ls build/gimp
babl-0.1.56-x86_64-1.txz gexiv2-0.10.8-x86_64-1.txz gimp-2.10.4.tar.bz2 glibc-solibs-2.28-x86_64-2.txz json-glib-1.4.2-x86_64-1.txz libraw1394-2.1.2-x86_64-2.txz
exiv2-0.26-x86_64-3.txz gimp-2.10.2.tar.bz2 gimp-2.10.6-x86_64-1.txz jasper-2.0.12-x86_64-2.txz lcms2-2.9-x86_64-2.txz
gegl-0.4.8-x86_64-1.txz gimp-2.10.4 glib2-2.56.2-x86_64-2.txz json-c-0.13.1_20180305-x86_64-1.txz libmypaint-1.3.0-x86_64-1.txz
(/code)

i think installing glibc was not a best idea
 
Old 10-12-2018, 05:00 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by przemo View Post
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
 
1 members found this post helpful.
Old 10-13-2018, 06:40 AM   #5
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Code:
$ echo $LANG
and
Code:
$ man locale
maybe it is not much of help but it is what I'm doing when forget the thing.
 
Old 10-13-2018, 07:04 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Other worthwhile checks. In an xterm, run
Code:
csh
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.
 
Old 10-15-2018, 02:42 PM   #7
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
Code:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = (unset),
	LC_ALL = (unset),
	LC_COLLATE = "C",
	LANG = "en_GB.UTF-8"


$echo $LANG
en_GB.UTF-8
$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=

$unicode_start
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)
unicode_start skipped on /dev/pts/3
/etc/profile.d/lang.sh
i had edited but it still does not give me full support of en_GB

Last edited by przemo; 10-15-2018 at 02:57 PM.
 
Old 10-16-2018, 01:54 AM   #8
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Edit:

It looks like you don't have locale for en_GB
Code:
$ ls /usr/lib/locale/en_GB.utf8/
does it exist?
Here is ok
Code:
$ export LANG=en_GB.UTF-8
$ locale
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=
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
 
Old 10-16-2018, 03:42 AM   #9
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
Originally Posted by przemo View Post
glibc-solibs-2.28-x86_64-2.txz
The current version for glibc for Slackware-stable is glibc-2.23. Maybe just try to downgrade glibc.
 
Old 10-16-2018, 04:44 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
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.
 
Old 10-16-2018, 05:30 PM   #11
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
i had reinstalled glibc-i18 no help - but i found that:

Code:
 
ls /usr/lib/locale/en_GB.utf8
ls: cannot access '/usr/lib/locale/en_GB.utf8': No such file or directory
but
Code:
ls /usr/lib64/locale/en_GB.utf8
LC_ADDRESS  LC_CTYPE           LC_MEASUREMENT  LC_MONETARY  LC_NUMERIC  LC_TELEPHONE
LC_COLLATE  LC_IDENTIFICATION  LC_MESSAGES     LC_NAME      LC_PAPER    LC_TIME
what if i copy content of /usr/lib64/locale to /usr/lib/locale

????
 
Old 10-16-2018, 05:34 PM   #12
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
i found this thread:

https://www.linuxquestions.org/quest...le-4175485111/
 
Old 10-17-2018, 03:31 AM   #13
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Quote:
Originally Posted by przemo View Post
what if i copy content of /usr/lib64/locale to /usr/lib/locale
????
if think better idea is to create link
Code:
# ln -s /usr/lib64/locale/en_GB.utf8 /usr/lib/locale/en_GB.utf8
 
Old 10-17-2018, 03:51 AM   #14
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
yes true, thanks

Code:
#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

Last edited by przemo; 10-17-2018 at 04:13 AM.
 
Old 10-17-2018, 01:55 PM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by przemo View Post
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
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Localization in WSN asouma Linux - Newbie 0 09-25-2011 11:08 AM
Localization - please help igadoter Slackware 4 09-09-2010 10:15 AM
Localization in linux pramod101 Linux - Newbie 2 12-28-2008 12:45 AM
Tcsh and localization Karu Slackware 4 09-18-2007 12:13 AM
localization sandeepps4 Linux - General 1 06-05-2007 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration