Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: TaoTePuh on August 15, 2010, 06:46:20 PM

Title: mc-locale does not work properly with de_DE.UTF-8
Post by: TaoTePuh on August 15, 2010, 06:46:20 PM
Starting mc with locale "de_DE.UTF-8", the "german umlauts" in messages and filenames are displayed wrong. For example, it shows "MenM-CM <" instead of "MenĂ¼".

Switching to locale "de_DE@euro" works well, but then I have other (bigger) problems (filesystem, samba-shares...).
Title: Re: mc-locale does not work properly with de_DE.UTF-8
Post by: TaoTePuh on August 15, 2010, 09:47:27 PM
Okay, I've built my own mc from the scratch, and now it works with de_DE.UTF-8 too. Of course, my extension is not so tiny (do not understand much of programming/compiling) and so it is larger (about 2.3MB).
Title: Re: mc-locale does not work properly with de_DE.UTF-8
Post by: bmarkus on August 16, 2010, 01:20:53 AM
Can you share configuration options used with configure? Did you build it on a stock TC or on a German setup?
Title: Re: mc-locale does not work properly with de_DE.UTF-8
Post by: TaoTePuh on August 16, 2010, 01:22:43 PM
I build mc (4.7.0.8) straight ahead in a "German setup" (de_DE.UTF-8) according to the instructions from the wiki (compiler flags etc) and "./configure --prefix=/usr/local".

Before I loaded the following extensions :

Code: [Select]
compiletc
linux-headers-2.6.33.3-tinycore
coreutils
glib1-dev
glib1
autoconf
automake
libtool
glib2-dev
glib2-locale
glib2
glibc_add_libs
glibc_apps
glibc_gconv
glibc_i18n_locale
pcre-dev
pcre
slang-dev
slang-shell
slang
ncurses-lib-dev
ncurses-lib
ncurses-utils
cvs

Perhaps the following is of interest to you: I used your .dep file for loading "my" mc and there was a missing library reported : "slang". After I added "slang.tcz" to the .dep file, "my" mc works.

I will later compile mc on a tc with locale "C". I will tell you about it then.
Title: Re: mc-locale does not work properly with de_DE.UTF-8
Post by: bmarkus on August 16, 2010, 01:31:18 PM
Thanks for the info. Regarding slang, you can choose to compile with slang or ncurses. My version in repo compiled without slang, therefore it is not in .dep configure gives a good summary of options used. Also worth to use ./configre --help too see all options.

Repo version built with

Quote
./configure --prefix=/usr/local --with-screen=ncurses
Title: Re: mc-locale does not work properly with de_DE.UTF-8
Post by: TaoTePuh on August 16, 2010, 02:09:05 PM
Here, then, is my report:

Building mc on a tc with locale "C" and running then on another tc with locale "de-DE.UTF-8", works well - all German umlauts in messages are right where they belong, file system, samba-shares too.