You are not logged in.

#1 2010-07-17 15:20:08

ford prefect
Member
Registered: 2010-07-08
Posts: 43

interactive script fails displaying umlauts

Hi,
For my Arch x86_64 with chakra I made a backup system intended to work like this:
udev detects my backup device, assigns a link in /dev and starts a backup script. that all works fine.

the backup script is run as root, as it was invoked by udev. now, i want it to display a dialogbox on screen, whether to backup or not. that was done wwith the following command:

sudo -u ford -H -s /usr/bin/kdialog --yesno "Backup durchführen?" --title "Backup" --display :0

as i am from germany i'd like it to display the umlaut correctly, but it doesnt.
i assume this problem to be connected to some other issues:
if i log on to a root terminal from inside my X i can type umlauts without problems.
On another virtual terminal logged on, i cannot type umlauts, the symbolmap seems to differ. still, the keyboard seems to be set up to de_DE too.

Where can i change the keyboard map for root or how can i make the kdialog-command use my settings?

so long and thanks…
ford


towel-day.com
nvidia ist keine Hautcreme

Offline

#2 2010-07-17 15:27:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: interactive script fails displaying umlauts

> if i log on to a root terminal from inside my X
You mean like Konsole? It's a terminal emulator.
Please post your /etc/rc.conf and locale settings.

Last edited by karol (2010-07-17 15:28:00)

Offline

#3 2010-07-17 15:38:17

ford prefect
Member
Registered: 2010-07-08
Posts: 43

Re: interactive script fails displaying umlauts

sorry, of course i mean terminal emulator…sorry.
the localisation part of rc.conf looks like this:

#
LOCALE="de_DE.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Europe/Berlin"
KEYMAP="de"
CONSOLEFONT="Agafari-12"
CONSOLEMAP=
USECOLOR="yes"

its working in my users environment.
the locale:

root@prefect:~$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

its all the same for my user and root. any ideas?
ford


towel-day.com
nvidia ist keine Hautcreme

Offline

#4 2010-07-17 15:42:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: interactive script fails displaying umlauts

Does you consolefont have umlauts?

Offline

#5 2010-07-17 15:47:08

ford prefect
Member
Registered: 2010-07-08
Posts: 43

Re: interactive script fails displaying umlauts

i dunno. how do i find out?
but its also about the kdialog, and the system font has umlauts for sure.


towel-day.com
nvidia ist keine Hautcreme

Offline

#6 2010-07-17 15:51:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: interactive script fails displaying umlauts

So it may be a kdialog encoding issue then.

Edit: Yeah, some people were reporting problems w/ it. I'll see what I can do about it.

Last edited by karol (2010-07-17 15:57:26)

Offline

#7 2010-07-17 16:10:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: interactive script fails displaying umlauts

Try this: "Backup durchf\xfchren?"
\xfc is a code für 'ü'.

echo -e "Backup durchf\xfchren?"

works here (I don't use KDE so no kdialog for me).

Offline

#8 2010-07-17 16:18:20

ford prefect
Member
Registered: 2010-07-08
Posts: 43

Re: interactive script fails displaying umlauts

sorry, doesnt work here…


towel-day.com
nvidia ist keine Hautcreme

Offline

#9 2010-07-17 16:24:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: interactive script fails displaying umlauts

"Backup durchführen?" maybe

Edit: I'm going to download Chakra and I'll try to fix it.
Edit 2: I've checked and "<p>Backup durchführen?</p> works for me. Try it.

Last edited by karol (2010-07-17 17:27:34)

Offline

Board footer

Powered by FluxBB