You are not logged in.

#1 2014-09-21 21:10:29

buntolo
Member
Registered: 2011-10-11
Posts: 202

[SOLVED] locale.gen back to default

I installed archlinux on July and edited locale.gen so it contained my language only (I copied the default one as a backup).
My locale.gen was:

# Configuration file for locale-gen
#
# lists of locales that are to be generated by the locale-gen command.
#
# Each line is of the form:
#
#     <locale> <charset>
#
#  where <locale> is one of the locales given in /usr/share/i18n/locales
#  and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
#
#  Examples:
#  en_US ISO-8859-1
#  en_US.UTF-8 UTF-8
#  de_DE ISO-8859-1
#  de_DE@euro ISO-8859-15
#
#  The locale-gen command will generate all the locales,
#  placing them in /usr/lib/locale.
#
#  A list of supported locales is included in this file.
#  Uncomment the ones you need.
#
it_IT.UTF-8 UTF-8

Since last week I was getting something like this:

$ locale
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=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE=C
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

I''ve noticed that my locale.gen was back to default, with tons of languages all commented out. I've removed # from my language and run 'locale.gen'
All is fine, but still I don't get why it has happened.

Last edited by buntolo (2014-09-25 01:55:08)

Offline

#2 2014-09-21 21:24:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] locale.gen back to default


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-09-25 01:54:29

buntolo
Member
Registered: 2011-10-11
Posts: 202

Re: [SOLVED] locale.gen back to default

I did know about pacnew, but didn't for pacorig.

Solved.

Offline

Board footer

Powered by FluxBB