Wie bringe ich dem xterm utf8 bei?
Ich habe hier Debian Sarge:
$ uname -srvm
Linux 2.6.8-2-686 #1 Mon Jan 24 03:58:38 EST 2005 i686
Wenn ich ein xterm in einer utf8-locale-Umgebung starte, erhalte ich von
ihm die Fehlermeldung:
$ (locale -a && locale && \
exec xterm -hold -geometry -0+0 -e \
sh -c 'locale && exec ${1+"$@"}' sh cat -- utf8.txt)
de_DE.utf8
de_DE.utf8@euro
en_GB.utf8
en_US.utf8
LANG=de_DE.utf8
LC_CTYPE=de_DE.utf8
LC_NUMERIC=C
LC_TIME=de_DE.utf8
LC_COLLATE=de_DE.utf8
LC_MONETARY=de_DE.utf8
LC_MESSAGES=C
LC_PAPER=de_DE.utf8
LC_NAME=de_DE.utf8
LC_ADDRESS=de_DE.utf8
LC_TELEPHONE=de_DE.utf8
LC_MEASUREMENT=de_DE.utf8
LC_IDENTIFICATION=de_DE.utf8
LC_ALL=
Warning: locale not supported by Xlib, locale set to C
Im xterm selbst soll neben dem locale der Inhalt einer Datei, die ein ß,
ein ¤, ein € und ein newline enthält, angezeigt werden (siehe Kommando,
oben).
---Schnipp--
ߤ€
---Schnapp--
Die Ausgabe im xterm sieht dann so aus:
LANG=de_DE.utf8
LC_CTYPE=de_DE.utf8
LC_NUMERIC=C
LC_TIME=de_DE.utf8
LC_COLLATE=de_DE.utf8
LC_MONETARY=de_DE.utf8
LC_MESSAGES=C
LC_PAPER=de_DE.utf8
LC_NAME=de_DE.utf8
LC_ADDRESS=de_DE.utf8
LC_TELEPHONE=de_DE.utf8
LC_MEASUREMENT=de_DE.utf8
LC_IDENTIFICATION=de_DE.utf8
LC_ALL=
ì
Wie man sieht, stimmt die Ausgabe (in der letzten Zeile) nicht.
Das Kommando
$ appres XTerm | fgrep -ie font
liefert:
*tipLabel.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*XmList*fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*XmText.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*XmTextField.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*tek4014*fontLarge: 9x15
*tek4014*font2: 8x13
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10
*VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1
*VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1
*VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
*VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1
*VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1
*VT100*font1: nil2
*VT100.font2: -*-fixed-medium-r-normal-*-*-50-98-108-c-*-iso8859-*
*VT100*font2: 5x7
*VT100.font3: -*-fixed-medium-r-normal-*-*-70-98-108-c-*-iso8859-*
*VT100*font3: 6x10
*VT100.font4: -*-fixed-medium-r-normal-*-*-90-98-108-c-*-iso8859-*
*VT100*font4: 7x13
*VT100.font5: -*-fixed-medium-r-normal-*-*-100-98-108-c-*-iso8859-*
*VT100*font5: 9x15
*VT100.font6: -*-fixed-medium-r-normal-*-*-120-98-108-c-*-iso8859-*
*VT100*font6: 10x20
*VT100.font: -*-fixed-medium-r-normal-*-*-90-98-108-c-*-iso8859-*
*menuBar*historyTruncated.fontList: -*-helvetica-medium-o-normal-*-*-70-98-108-*-*-iso8859-*
*menuBar*fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*popup*fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*topArea*XmTextField.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*topArea*XmText.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*topArea*fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*mouseDocumentation.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*docinfoButton.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*mailto*urlLabel.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*licenseDialog*text.fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*fontMenu*fontsel*Label: Selection
*fontMenu*fontdefault*Label: Default
*fontMenu*font4*Label: Medium
*fontMenu*render-font*Label: TrueType Fonts
*fontMenu*font5*Label: Large
*fontMenu*font1*Label: Unreadable
*fontMenu*font-linedrawing*Label: Line-Drawing Characters
*fontMenu*utf8-mode*Label: UTF-8
*fontMenu*font6*Label: Huge
*fontMenu*font2*Label: Tiny
*fontMenu*font-doublesize*Label: Doublesized Characters
*fontMenu*fontescape*Label: Escape Sequence
*fontMenu*font3*Label: Small
*fontMenu*font-loadable*Label: VT220 Soft Fonts
*fontMenu.Label: VT Fonts
*SimpleMenu*menuLabel.font: -adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*
XTerm*VT100.font: -*-fixed-medium-r-normal-*-*-90-98-108-c-*-iso8859-*
*Font: -*-fixed-medium-r-normal-*-*-90-98-108-c-*-iso8859-*
*IconFont: nil2
*fontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
*FontList: -*-helvetica-medium-r-normal-*-*-70-98-108-*-*-iso8859-*
Was muss ich noch konfigurieren, damit das xterm mit utf8 zurechtkommt?
--
Wenn Sie mir E-Mail schreiben, stellen | When writing me e-mail, please
Sie bitte vor meine E-Mail-Adresse | precede my e-mail address with
meinen Vor- und Nachnamen, etwa so: | my full name, like
Helmut Waitzmann <xxx@example.net>, (Helmut Waitzmann) xxx@example.net
Reply to: