You are not logged in.

#1 2013-09-03 23:12:28

xexio
Member
Registered: 2011-03-29
Posts: 14

Problem with locale

I have a problem with locale.

When I put the locale command in the console.

This is the output:

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
LC_CTYPE="en"
LC_NUMERIC="en"
LC_TIME="en"
LC_COLLATE="en"
LC_MONETARY="en"
LC_MESSAGES="en"
LC_PAPER="en"
LC_NAME="en"
LC_ADDRESS="en"
LC_TELEPHONE="en"
LC_MEASUREMENT="en"
LC_IDENTIFICATION="en"
LC_ALL=

Whats the problem?

Offline

#2 2013-09-03 23:22:47

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,170
Website

Re: Problem with locale

It sounds like you've set your locales incorrectly, as locales are usually in the en_US.UTF-8 format.

Study this to see what I mean.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2013-09-03 23:46:00

xexio
Member
Registered: 2011-03-29
Posts: 14

Re: Problem with locale

I read this guide before post the problem.

This is my locale.conf

# Enable UTF-8.
LANG="en_GB.UTF-8"

# Keep the default sort order (e.g. files starting with a '.'
# should appear at the start of a directory listing.)
LC_COLLATE="C"

# Set the short date to YYYY-MM-DD (test with "date +%c")
LC_TIME="en_GB.UTF-8"

And this, locale.gen

en_GB.UTF-8 UTF-8
en_GB ISO-8859-1

What's wrong?

Offline

#4 2013-09-04 00:03:35

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,170
Website

Re: Problem with locale

Here's mine, just for comparison:

locale.gen

en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
en_US.UTF-8 UTF-8 

locale.conf

LANG=en_GB.UTF-8 UTF-8 

Output of 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="en_GB.UTF-8"
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= 

Have you also run the command sudo locale-gen?

Last edited by clfarron4 (2013-09-04 00:04:26)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#5 2013-09-04 00:23:29

xexio
Member
Registered: 2011-03-29
Posts: 14

Re: Problem with locale

Problem resolved.

Thanks!

Offline

#6 2013-09-04 00:27:04

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,170
Website

Re: Problem with locale

Was the fix running locale-gen?

PS: Please remember to mark your thread [SOLVED]! wink

Last edited by clfarron4 (2013-09-04 00:27:21)


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

Board footer

Powered by FluxBB