| View previous topic :: View next topic |
| Author |
Message |
alekel Tux's lil' helper


Joined: 05 Apr 2004 Posts: 99 Location: Kamen / NRW
|
Posted: Sun Nov 21, 2004 10:55 am Post subject: [OT] UTF-8 und der VI [solved] |
|
|
Hallo zusammen,
ich habe gerade umgestellt auf UTF-8. Soweit funktioniert auch alles. Wenn ich aber den VI starte erkennt er keine Umlaute mehr und eingeben kann ich diese auch nicht mehr. Wie bringe ich meinem VI utf-8 bei?
Last edited by alekel on Sun Nov 21, 2004 2:35 pm; edited 1 time in total |
|
| Back to top |
|
 |
dot Guru


Joined: 05 May 2003 Posts: 335 Location: Germany
|
Posted: Sun Nov 21, 2004 12:39 pm Post subject: |
|
|
Hi,
was gibt dir folgender Befehl aus: locale
Wenn der VI das nicht anzeigt, kann es an folgendem liegen:
- Die Datei ist nicht in UTF-8
- Dein Terminal-Emulator (xterm, aterm, ...) kann kein UTF-8
- Die Schriftart, welche du verwendest ist keine UTF-8 Schriftart
Grüße
Flo |
|
| Back to top |
|
 |
alekel Tux's lil' helper


Joined: 05 Apr 2004 Posts: 99 Location: Kamen / NRW
|
Posted: Sun Nov 21, 2004 1:13 pm Post subject: |
|
|
Ich habe noch kein x-System aufgesetzt bin also nur auf der bash.
hier die Ausgaben:
| Code: | # locale
LANG=german
LC_CTYPE="de_DE.utf8"
LC_NUMERIC="de_DE.utf8"
LC_TIME="de_DE.utf8"
LC_COLLATE="de_DE.utf8"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="de_DE.utf8"
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=de_DE.utf8
# cat /etc/rc.conf
# /etc/rc.conf: Global startup script configuration settings
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/rc.conf,v 1.22 2003/10/21 06:09:42 vapier Exp $
# Use KEYMAP to specify the default console keymap. There is a complete tree
# of keymaps in /usr/share/keymaps to choose from. This setting is used by the
# /etc/init.d/keymaps script.
KEYMAP="de-latin1-nodeadkeys"
# Should we first load the 'windowkeys' console keymap? Most x86 users will
# say "yes" here. Note that non-x86 users should leave it as "no".
SET_WINDOWKEYS="no"
# The maps to load for extended keyboards. Most users will leave this as is.
EXTENDED_KEYMAPS=
#EXTENDED_KEYMAPS="backspace keypad"
# Unicode setzen
UNICODE="yes"
# CONSOLEFONT specifies the default font that you'd like Linux to use on the
# console. You can find a good selection of fonts in /usr/share/consolefonts;
# you shouldn't specify the trailing ".psf.gz", just the font name below.
# To use the default console font, comment out the CONSOLEFONT setting below.
# This setting is used by the /etc/init.d/consolefont script (NOTE: if you do
# not want to use it, run "rc-update del consolefont" as root).
CONSOLEFONT="lat9u-16"
# CONSOLETRANSALTION is the charset map file to use. Leave commented to use
# the default one. Have a look in /usr/share/consoletrans for a selection of
# map files you can use.
CONSOLETRANSLATION="8859-1_to_uni"
# Set CLOCK to "UTC" if your system clock is set to UTC (also known as
# Greenwich Mean Time). If your clock is set to the local time, then set CLOCK
# to "local". This setting is used by the /etc/init.d/clock script.
CLOCK="local"
# Set EDITOR to your preferred editor.
#EDITOR="/bin/nano"
EDITOR="/usr/bin/vim"
#EDITOR="/usr/bin/emacs"
# Set PROTOCOLS to the protocols that you plan to use. Gentoo Linux will only
# enable module auto-loading for these protocols, eliminating annoying module
# not found errors.
#
# NOTE: Do NOT uncomment the next lines, but add them to 'PROTOCOLS=...' line!!
#
# Num Protocol
# 1: Unix
# 2: IPv4
# 3: Amateur Radio AX.25
# 4: IPX
# 5: DDP / appletalk
# 6: Amateur Radio NET/ROM
# 9: X.25
# 10: IPv6
# 11: ROSE / Amateur Radio X.25 PLP
# 19: Acorn Econet
# Most users want this:
PROTOCOLS="1 2"
#For IPv6 support:
#PROTOCOLS="1 2 10"
# What display manager do you use ? [ xdm | gdm | kdm | entrance ]
#DISPLAYMANAGER="xdm"
# XSESSION is a new variable to control what window manager to start
# default with X if run with xdm, startx or xinit. The default behavior
# is to look in /etc/X11/Sessions/ and run the script in matching the
# value that XSESSION is set to. The support scripts is smart enouth to
# look in all bin directories if it cant find a match in /etc/X11/Sessions/,
# so setting it to "enligtenment" can also work. This is basically used
# as a way for the system admin to configure a default system wide WM,
# allthough it will work if the user export XSESSION in his .bash_profile, etc.
#
# NOTE: 1) this behaviour is overridden when a ~/.xinitrc exists, and startx
# is called.
# 2) even if a ~/.xsession exist, if XSESSION can be resolved, it will
# be executed rather than ~/.xsession, else KDM breaks ...
#
# Defaults depending on what you install currently include:
#
# Gnome - will start gnome-session
# kde-<version> - will start startkde (ex: kde-3.0.2)
# Xsession - will start a terminal and a few other nice apps
#XSESSION="Gnome"
|
Noch ne Frage kann ich bei locale auf de_DE.utf8@euro setzten? |
|
| Back to top |
|
 |
dot Guru


Joined: 05 May 2003 Posts: 335 Location: Germany
|
Posted: Sun Nov 21, 2004 1:26 pm Post subject: |
|
|
Hi,
hmm, könnte vielleicht hier:
| Code: |
CONSOLEFONT="lat9u-16"
|
oder hier dran liegen:
| Code: |
CONSOLETRANSLATION="8859-1_to_uni"
|
Consolfont: Ist afaik keine UTF-8 Font
Consoltranslation: übersetzt ISO-8859-1 Zeichen nach Unicode. Ich bin
mir nicht sicher, ob das so glücklich ist, weil wenn er Unicode-Zeichen umwandeln
will, weil der PC weiß ja nicht, ob das UTF-8 oder ISO-irgendwas ist. Wenn er dann
UTF-8 Zeichen nach UTF-8 umwandeln will, und "denkt" es seien ISO-Zeichen,
kommt dabei nichts vernünftiges raus.
Das mit dem de_DE.utf8@euro ist glaub ich nicht nötig, bzw. ich glaube so was
gibt es gar nicht. Das @euro wurde afaik nur für ISO-Zeichnsätze eingeführt, so
als Erweiterung, damit du auf der Shell auch ein ¤-Zeichen darstellen kannst.
Da dieses Zeichen im UTF-8 Charset existiert, braucht man diese Erweiterung nicht
mehr.
Funktioniert das mit den UTF-8 Zeichen denn in der grafischen Oberfläche, wenn du
die Datei mit dem vi im xterm öffnest?
Grüße
Flo |
|
| Back to top |
|
 |
alekel Tux's lil' helper


Joined: 05 Apr 2004 Posts: 99 Location: Kamen / NRW
|
Posted: Sun Nov 21, 2004 2:08 pm Post subject: |
|
|
Leider habe ich noch kein grafische Oberfläche. Ich habe jetzt auch alle möglichen kombinationen durchprobiert. Erst wenn ich unicode_start eingebe stimmt die Tastatur und auch der vi. Allerdings ist die 'make menuconfig' total komisch. Ich habe keine Linien mehr sondern nur noch die Zahl '3' als Rahmen.
--- Nachtrag:
Hat sich zwichenzeitlich erledigt: http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8
und das mit dem make menuconfig lag an ncurses. Ich habe es nochmals neu kompiliert ohne dem useflag "unicode" und siehe da, es funktionierte wieder.....
Danke nochmals |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|