locale not set correct in for german language

Bug #573808 reported by lsmod
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Invalid
Undecided
Unassigned
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

There are many problems coming up with the locales.
Every time you install someting with aptitude or here another example:

> ldd /usr/bin/ldd
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
        not a dynamic executable

> set | grep DE
LANG=de_DE.utf8
LC_ALL=de_DE

I already rebuild the locales with locale-gen, but without no effect.

Another problem is that in KDE the languages are mixed up.
But for this i will open another bug.

Revision history for this message
lsmod (forum+ubuntu) wrote :

I have installed Ubuntu 10.04 from the scratch.

On another PC Ubuntu 9 was already installed with the language correct in german.
There was no problem after the upgrade.

Revision history for this message
lsmod (forum+ubuntu) wrote :

Here another example using dpkg:

> dpkg -r wine1.0
(Reading database ... 99522 files and directories currently installed.)
Removing wine1.0 ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "de_DE",
        LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
update-binfmts: warning: current package is wine, but binary format already
installed by wine1.0; not removing.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "de_DE",
        LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Processing triggers for man-db ...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "de_DE",
        LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = "de_DE",
        LANG = "de_DE.utf8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

Revision history for this message
lsmod (forum+ubuntu) wrote :

For the other language problems i reopened bug 102773

Revision history for this message
steeb (steeb) wrote :

$ LC_ALL="de_DE.uft8"
bash: Warnung: setlocale: LC_ALL: cannot change locale (de_DE.uft8): No such file or directory

$ gnome-language-selector
/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py:802: GtkWarning: gtk_cell_view_set_cell_data: assertion `cell_view->priv->displayed_row != NULL' failed
  cell = combo.get_child().get_cell_renderers()[0]
Traceback (most recent call last):
  File "/usr/bin/gnome-language-selector", line 32, in <module>
    options=options)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 190, in __init__
    self.updateLocaleChooserCombo()
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 62, in wrapper
    res = f(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 854, in updateLocaleChooserCombo
    self.updateExampleBox()
  File "/usr/lib/python2.6/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 926, in updateExampleBox
    locale.setlocale(locale.LC_ALL, mylocale)
  File "/usr/lib/python2.6/locale.py", line 513, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

Revision history for this message
David Planella (dpm) wrote :

lsmod,

Thanks a lot for reporting this bug. There is a lot of information here, and it would help to focus in what the exact problem is:

* What's the current behaviour? What are the exact steps to reproduce it?
* What results do you expect?

Do you think you could summarize this in order to make it easier to investigate what's happening?

Changed in ubuntu-translations:
status: New → Incomplete
Revision history for this message
lsmod (forum+ubuntu) wrote :

Hi David,

i will try to help:

* What's the current behaviour? What are the exact steps to reproduce it?

The current behaviour are various problems with the german language locales on system level.
(The problems in KDE in the other bug report are fixed.)

When you are working in shell you can see that the german vowel mutations (äüö ÄÜÖ ß) are not displayed correct.
Of course there are several problems with this vowels in filenames.
The vowels are been shown as crazy special characters like inverted ? or something else.
When you try to access (copy, move, delete) such filenames it will not work!
This is the same reason when you try to work with such files in KDE with a filemanager like krusader.
You can see the files but you can't rename them.
Although files are been shown correct in KDE you can't work wirh them because the translation of special characters to the system level is not working.

(Now i understand why debian has used ISO-8859 as standard locales in germany. But UTF8 would be more universal - if it works without problems.)

* What results do you expect?

1. When you install a package in the shell with aptitude you can see the error messages as posted above.
    This should be fixed. (Somehow the locales could not to be find by the system ?)
2. Filenames with german vowels should be shown and handled correct in the shell.
3. Text output in the shell should show correct german vowels (I try to avoid vowels).

Regards
Karsten

Revision history for this message
Mohamed Amine Ilidrissi (ilidrissi.amine) wrote :

Confirming because the original reporter has given enough information, and another person has confirmed this issue.

Changed in ubuntu-translations:
status: Incomplete → Confirmed
Revision history for this message
exactt (giesbert) wrote :

same problem here on Ubuntu Server 10.04.1 x64

Revision history for this message
exactt (giesbert) wrote :

this fixed the problem for me:

apt-get install language-pack-de-base

Changed in ubuntu:
status: New → Invalid
Revision history for this message
David Planella (dpm) wrote :

Marking as Invalid, as it seems it was simply a matter of not having installed the German language pack

Changed in ubuntu-translations:
status: Confirmed → Invalid
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.