You are not logged in.
Pages: 1
I have this:
$ cat /etc/locale.gen
en_US.UTF-8 UTF-8
$ cat /etc/locale.conf
LANG=en_US.UTF-8And yet
$ locale -a
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_COLLATE to default locale: No such file or directory
C
POSIXand
$ sudo locale-gen
Generating locales...
en_US.UTF-8.../usr/share/i18n/locales/en_US:6: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:7: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:8: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:9: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:10: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:11: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:12: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:13: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:14: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:15: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:16: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:17: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:19: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:20: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:21: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:22: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:23: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:24: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:25: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:26: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:27: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:28: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:29: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:30: syntax error: not inside a locale definition section
/usr/share/i18n/locales/en_US:31: syntax error: not inside a locale definition section
circular dependencies between locale definitionsand
$ 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=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=Where is "en_US.utf8" coming from? I have "en_US.UTF-8" everywhere. And why the error in "/usr/share/i18n/locales/en_US"?
Last edited by Moooji (2016-03-20 17:31:04)
Offline
What's in /usr/share/i18n/locales/en_US?
Offline
What's the output of pacman -Qkk glibc
Last edited by ugjka (2016-03-20 17:35:05)
Offline
$ cat /usr/share/i18n/locales/en_US
escape_char /
comment_char %
% Locale for English locale in the USA
% Contributed by Ulrich Drepper <drepper@redhat.com>, 2000
CL_IDENTIFICATION
title "English locale for the USA"
source "Free Software Foundation, Inc."
address "http:////www.gnu.org//software//libc//"
contact ""
email "bug-glibc-locales@gnu.org"
tel ""
fax ""
language "English"
territory "USA"
revision "1.0"
date "2000-06-24"
%
category "en_US:2000";CL_IDENTIFICATION
category "en_US:2000";LC_CTYPE
category "en_US:2000";LC_COLLATE
category "en_US:2000";LC_TIME
category "en_US:2000";LC_NUMERIC
category "en_US:2000";LC_MONETARY
category "en_US:2000";LC_MESSAGES
category "en_US:2000";LC_PAPER
category "en_US:2000";LC_NAME
category "en_US:2000";LC_ADDRESS
category "en_US:2000";LC_TELEPHONE
category "en_US:2000";LC_MEASUREMENT
END LC_IDENTIFICATION
LC_CTYPE
copy "en_US"
END LC_CTYPE
LC_COLLATE
% Copy the template from ISO/IEC 14651
copy "iso14651_t1"
END LC_COLLATE
LC_MONETARY
int_curr_symbol "<U0055><U0053><U0044><U0020>"
currency_symbol "<U0024>"
mon_decimal_point "<U002E>"
mon_thousands_sep "<U002C>"
mon_grouping 3;3
positive_sign ""
negative_sign "<U002D>"
int_frac_digits 2
frac_digits 2
p_cs_precedes 1
int_p_sep_by_space 1
p_sep_by_space 0
n_cs_precedes 1
int_n_sep_by_space 1
n_sep_by_space 0
p_sign_posn 1
n_sign_posn 1
%
END LC_MONETARY
LC_NUMERIC
decimal_point "<U002E>"
thousands_sep "<U002C>"
grouping 3;3
END LC_NUMERIC
LC_TIME
abday "<U0053><U0075><U006E>";"<U004D><U006F><U006E>";/
"<U0054><U0075><U0065>";"<U0057><U0065><U0064>";/
"<U0054><U0068><U0075>";"<U0046><U0072><U0069>";/
"<U0053><U0061><U0074>"
day "<U0053><U0075><U006E><U0064><U0061><U0079>";/
"<U004D><U006F><U006E><U0064><U0061><U0079>";/
"<U0054><U0075><U0065><U0073><U0064><U0061><U0079>";/
"<U0057><U0065><U0064><U006E><U0065><U0073><U0064><U0061><U0079>";/
"<U0054><U0068><U0075><U0072><U0073><U0064><U0061><U0079>";/
"<U0046><U0072><U0069><U0064><U0061><U0079>";/
"<U0053><U0061><U0074><U0075><U0072><U0064><U0061><U0079>"
week 7;19971130;7
first_weekday 2
first_workday 2
abmon "<U004A><U0061><U006E>";"<U0046><U0065><U0062>";/
"<U004D><U0061><U0072>";"<U0041><U0070><U0072>";/
"<U004D><U0061><U0079>";"<U004A><U0075><U006E>";/
"<U004A><U0075><U006C>";"<U0041><U0075><U0067>";/
"<U0053><U0065><U0070>";"<U004F><U0063><U0074>";/
"<U004E><U006F><U0076>";"<U0044><U0065><U0063>"
mon "<U004A><U0061><U006E><U0075><U0061><U0072><U0079>";/
"<U0046><U0065><U0062><U0072><U0075><U0061><U0072><U0079>";/
"<U004D><U0061><U0072><U0063><U0068>";/
"<U0041><U0070><U0072><U0069><U006C>";/
"<U004D><U0061><U0079>";/
"<U004A><U0075><U006E><U0065>";/
"<U004A><U0075><U006C><U0079>";/
"<U0041><U0075><U0067><U0075><U0073><U0074>";/
"<U0053><U0065><U0070><U0074><U0065><U006D><U0062><U0065><U0072>";/
"<U004F><U0063><U0074><U006F><U0062><U0065><U0072>";/
"<U004E><U006F><U0076><U0065><U006D><U0062><U0065><U0072>";/
"<U0044><U0065><U0063><U0065><U006D><U0062><U0065><U0072>"
% Appropriate date and time representation (%c)
% "%a %d %b %Y %r %Z"
d_t_fmt "<U0025><U0061><U0020><U0025><U0064><U0020><U0025><U0062><U0020><U0025><U0059><U0020><U0025><U0072><U0020><U0025><U005A>"
%
% Appropriate date representation (%x)
% "%m/%d/%Y"
d_fmt "<U0025><U006D><U002F><U0025><U0064><U002F><U0025><U0059>"
%
% Appropriate time representation (%X)
% "%r"
t_fmt "<U0025><U0072>"
%
% Appropriate AM/PM time representation (%r)
% "%I:%M:%S %p"
t_fmt_ampm "<U0025><U0049><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
<U0025><U0070>"
%
% Strings for AM/PM
%
am_pm "<U0041><U004D>";"<U0050><U004D>"
%
% Appropriate date representation (date(1)) "%a %b %e %H:%M:%S %Z %Y"
date_fmt "<U0025><U0061><U0020><U0025><U0062><U0020><U0025><U0065>/
<U0020><U0025><U0048><U003A><U0025><U004D><U003A><U0025><U0053><U0020>/
<U0025><U005A><U0020><U0025><U0059>"
END LC_TIME
LC_MESSAGES
yesexpr "<U005E><U005B><U0079><U0059><U005D><U002E><U002A>"
noexpr "<U005E><U005B><U006E><U004E><U005D><U002E><U002A>"
yesstr "<U0059><U0065><U0073>"
nostr "<U004E><U006F>"
END LC_MESSAGES
LC_PAPER
height 279
width 216
END LC_PAPER
LC_NAME
name_fmt "<U0025><U0064><U0025><U0074><U0025><U0067><U0025><U0074>/
<U0025><U006D><U0025><U0074><U0025><U0066>"
name_miss "<U004D><U0069><U0073><U0073><U002E>"
name_mr "<U004D><U0072><U002E>"
name_mrs "<U004D><U0072><U0073><U002E>"
name_ms "<U004D><U0073><U002E>"
END LC_NAME
LC_ADDRESS
postal_fmt "<U0025><U0061><U0025><U004E><U0025><U0066><U0025><U004E>/
<U0025><U0064><U0025><U004E><U0025><U0062><U0025><U004E><U0025><U0068>/
<U0020><U0025><U0073><U0020><U0025><U0065><U0020><U0025><U0072><U0025>/
<U004E><U0025><U0054><U002C><U0020><U0025><U0053><U0020><U0025><U007A><U0025>/
<U004E><U0025><U0063><U0025><U004E>"
country_name "<U0055><U0053><U0041>"
country_post "<U0055><U0053><U0041>"
country_ab2 "<U0055><U0053>"
country_ab3 "<U0055><U0053><U0041>"
country_num 840
% USA
country_car "<U0055><U0053><U0041>"
country_isbn 0
% English
lang_name "<U0045><U006E><U0067><U006C><U0069><U0073><U0068>"
% en
lang_ab "<U0065><U006E>"
% eng
lang_term "<U0065><U006E><U0067>"
% eng
lang_lib "<U0065><U006E><U0067>"
END LC_ADDRESS
LC_TELEPHONE
tel_int_fmt "<U002B><U0025><U0063><U0020><U0028><U0025><U0061><U0029>/
<U0020><U0025><U006C>"
tel_dom_fmt "<U0028><U0025><U0061><U0029><U0020><U0025><U006C>"
int_select "<U0031><U0031>"
int_prefix "<U0031>"
END LC_TELEPHONE
LC_MEASUREMENT
% US customary units
measurement 2
END LC_MEASUREMENTWhat I had chanded when I wanted to make Monday to be the 1st day of the week and then changed back was this
week 7;19971130;7
first_weekday 2 # not sure, though, maybe it was 1
first_workday 2 # not sure, though, maybe it was 1
I've tried different combinations when changing it back but it hasn't worked.
Last edited by Moooji (2016-03-20 17:42:24)
Offline
$ pacman -Qkk glibc
backup file: glibc: /etc/locale.gen (Modification time mismatch)
backup file: glibc: /etc/locale.gen (Size mismatch)
warning: glibc: /usr/share/i18n/locales/en_US (Modification time mismatch)
glibc: 1526 total files, 1 altered fileOffline
Offline
CL_IDENTIFICATION should be LC_IDENTIFICATION. How did this get modified?
Offline
Thanks, it's worked. The command "locale", however, returns "LANG=en_US.utf8", whereas in "locale.conf" it's "LANG=en_US.UTF-8". Is that normal?
Last edited by Moooji (2016-03-20 17:48:33)
Offline
Yes, that's normal.
Offline
Why is it normal?
Offline
Not sure, but it is.
Offline
It's due to /bin/localedef (the tool behind /bin/locale-gen) normalising the codeset by removing non-alpha-numercial characters and lowercaseing it so that "UTF-8" in this case becomes "utf8".
Here's the code responsible: locale/programs/localedef.c:503
Just for anyone interested.
Last edited by Earnestly (2016-03-20 22:08:20)
Offline
Pages: 1