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-17-2018, 02:18 PM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333

You're on Slackware? So am I. Here they are
Code:
bash-4.4$ cd /var/lib/pkgtools/packages
bash-4.4$ grep en_GB.utf8 glibc*
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_ADDRESS
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_COLLATE
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_CTYPE
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_IDENTIFICATION
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_MEASUREMENT
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_MESSAGES/
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_MONETARY
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_NAME
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_NUMERIC
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_PAPER
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_TELEPHONE
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib/locale/en_GB.utf8/LC_TIME
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_ADDRESS
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_COLLATE
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_CTYPE
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_IDENTIFICATION
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_MEASUREMENT
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_MESSAGES/
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_MONETARY
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_NAME
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_NUMERIC
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_PAPER
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_TELEPHONE
glibc-i18n-2.27_multilib-x86_64-4alien:usr/lib64/locale/en_GB.utf8/LC_TIME
They are in the glibc-i189n package, but I would point out 3 Things
  1. The Standard slackware64 package only puts files in /usr/lib64, and the standard 32bit package only puts them in /usr/lib. I have Alien Bob's multilib package from slackware.com with both of them.
  2. Linux is case sensitive, and it's en_GB.utf8, not en_GB.UTF8
  3. If you're on 14.2, it's /var/log/packages holds the packages. I think you're somewhere in between, IIRC

do an 'upgradepkg --install-new /path/to/glibc*.txz' from your copy of the dvd. If you have 64bit, and your package is 32bit install the compat32 packages, along with the half a dozen or so that have to be replaced (mainly glibc and gcc stuff).

I think you've already been given a good idea how to set up locales
 
1 members found this post helpful.
Old 10-18-2018, 01:42 AM   #17
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
On of possible solution (hope it will work) from 'man locale': "The following example compiles a custom locale from the ./wrk directory with the localedef(1) utility under the $HOME/.locale directory, then tests the result with the date(1) command, and then sets the environment variables LOCPATH and LANG in the shell profile file so that the custom locale will be used in the subsequent user sessions:
Code:
$ mkdir -p $HOME/.locale
$ I18NPATH=./wrk/ localedef -f UTF-8 -i fi_SE $HOME/.locale/fi_SE.UTF-8
$ LOCPATH=$HOME/.locale LC_ALL=fi_SE.UTF-8 date
$ echo "export LOCPATH=\$HOME/.locale" >> $HOME/.bashrc$ localedef -v -c -i en_GB -f UTF-8  ~/en_GB.utf8
$ echo "export LANG=fi_SE.UTF-8" >> $HOME/.bashrc
"

Last edited by igadoter; 10-18-2018 at 02:41 AM.
 
Old 10-18-2018, 02:45 AM   #18
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
Code:
localedef -v -c -i en_GB -f UTF-8 en_GB.UTF-8
Do you mean
Code:
# localedef ...
or
Code:
$ localedef ...
?
 
Old 10-21-2018, 10:57 AM   #19
przemo
Member
 
Registered: Feb 2016
Location: cork.ie
Distribution: Slackware-current
Posts: 162

Original Poster
Rep: Reputation: Disabled
i had reinstalled system 14.2 problem solved (i've messed up 14.2 with current)
 
  


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 03:10 AM.

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