error when opening the K3b program: "System locale charset is ANSI_X3.4-1968"

Bug #179150 reported by wpshooter
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu
Fix Released
Medium
Daniel Hahler

Bug Description

I get this error message when opening K3b program on Hardy Herron Alpha 2 installation.

System locale charset is ANSI_X3.4-1968
Your system's locale charset (i.e. the charset used to encode filenames) is set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally. Most likely the locale is not set at all. An invalid setting will result in problems when creating data projects.
Solution: To properly set the locale charset make sure the LC_* environment variables are set. Normally the distribution setup tools take care of this.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Please provide the output of "locale" (entered on a terminal/konsole).

Revision history for this message
wpshooter (joverstreet1) wrote :

It is as follows:

wpshooter@JRO-hardy-4:~$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Revision history for this message
Chirea Mircea (desolator) wrote :

I have the same problem, and if K3b says it shouldn't then it's probably right. In the meantime I told it to shut up, as the CDs end up fine, readable in Ubuntu and Windows, so probably that doesn't matter much. And yes, I get the same output as wpshooter.

Revision history for this message
Daniel Hahler (blueyed) wrote :

I don't think it's a bug in k3b: it only complains, which is considered to be good (as it may cause problems).

I think the real bug is that you have no locale configured. Or is this intentional?
What do you have in /etc/default/locale?

Chirea, are you using also Ubuntu Hardy?

Revision history for this message
Chirea Mircea (desolator) wrote :

I'm using Gutsy, but I've enabled backports and I'm pretty sure it has been backported.

"/etc/default/locale" has this: LANG="C"

Revision history for this message
Jason Straight (jason-jeetkunedomaster) wrote :

Gutsy here - no backports but I do have kde4 installed.

Revision history for this message
wpshooter (joverstreet1) wrote :

I am still getting this problem under Hardy Heron Alpha 4.

Revision history for this message
Sander Jonkers (jonkers) wrote :

With k3b on ubuntu amd64 hardy 8.04 Alpha 4, I also get the error/warning message "System locale charset is ANSI_X3.4-1968".

sander@sander-amd64-8:~$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=
sander@sander-amd64-8:~$

sander@sander-amd64-8:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=8.04
DISTRIB_CODENAME=hardy
DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
sander@sander-amd64-8:~$

Revision history for this message
BetinhoDJ (betinho-dj) wrote :

This isn't a bug. This problem can be fixed just defining the correct locale on your system.
The locale command must return something like this...
[betinho@myhost ~]$ locale
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=
[betinho@myhost ~]$

Revision history for this message
wpshooter (joverstreet1) wrote :

It isn't a bug any longer because it looks like it has finally been fixed at Hardy Alpha 6.

But I think it was a bug prior to that point, because I have never had this problem on versions of Ubuntu prior to Hardy.

Unless I am wrong, I believe that all these locale setting parameters should be set during and by/part of the installation of the O/S. The users should not have to do this once the O/S is installed.

Thanks.

Revision history for this message
Daniel Hahler (blueyed) wrote :

I'm marking this "Fix released", because it appears to have been fixed during the Hardy cycle.

Yes, a locale (other than "C") should get setup and it appears that this has been fixed now.
If you're still experiencing this bug, please try the solution provided at http://www.ubuntugeek.com/how-to-select-and-generate-locales-on-ubuntu.html (editing /var/lib/locales/supported.d/local) or install the required language-pack-XX-base package(s).

Please don't hesitate to re-open this bug, in case there's still a problem for you and/or report any other bugs you might find. Thank you.

Revision history for this message
Martijn Brinkers (m-brinkers) wrote :

I did a clean install of Hardy (realeased version) and experience similar problems.

For example running man:

martijn@mitm:/etc$ man ifconfig
man: can't set the locale; make sure $LC_* and $LANG are correct

locale command returns

martijn@mitm:/etc$ locale
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=en_DK.UTF8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I have reconfigured/reinstalled locale but that did not work.

Revision history for this message
Martijn Brinkers (m-brinkers) wrote :

installing "language-pack-en" seems to have fixed it. Somehow no language pack was installed.

Revision history for this message
wpshooter (joverstreet1) wrote :

Surely the installation of the "language-pack-en" should be a part of the O/S installation. I believe that is has always been on past versions of Ubuntu.

They need to fix this problem so that the installation is accomplished correctly during the O/S install. Therefore, seems to me that they need to redo the currently released final version of the Ubuntu ISO image. And not just for this problem but also for a HOST of others.

Thanks.

Revision history for this message
tomcloyd (tomcloyd-comcast) wrote :

Since the recent rash of updates for Kubuntu 8.10, I've been having the same problem. Installing the "language-pack-en" package fixed it. I trust that if this is something that needs fixing someone will notice. Hope so.

Revision history for this message
yarly (ih8junkmai1) wrote :

Same bug, same problem.. locale isn't set in Intrepid Ibex

Ubuntu 8.10
K3b 1.0.5

****@*******:~$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

Revision history for this message
Didi Kohen (kohen-d) wrote :

It's a problem if LC_ALL is undefined or defined as C

Revision history for this message
peter godward (petergodward) wrote :

So, how do I set up LC_ALL correctly?

Revision history for this message
Didi Kohen (kohen-d) wrote :

/etc/default/locale
Make sure it has a line:
LC_ALL=en_US.utf8

or whatever is your locale...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.