Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Diskussionsforum
  • Search

[SOLVED] Lokalisierung mit UTF-8 (Nano)

Unterhaltung über Gentoo und andere Themen: Alles was nicht in ein Support-Forum gehört.
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
Author
Message
Lixos
n00b
n00b
User avatar
Posts: 19
Joined: Sat Apr 04, 2015 6:44 am

[SOLVED] Lokalisierung mit UTF-8 (Nano)

  • Quote

Post by Lixos » Tue Apr 21, 2015 11:47 am

Zu obigen Thema benötige ich eure Unterstützung.
Die Guides zur Lokalisierung und zu UTF-8 habe ich bereits gelesen.

Ausgangssituation:
Ich habe im Editor Nano einen Text geschrieben, welchen ich speichern möchte.
Dann folgt beim Beenden des Editors der Hinweis:
Möchten Sie die Änderungen (Nein verwirft die Änderungen) speichern?
Habe ich die Lokalisierung auf English eingestellt en_US.UTF-8, steht das Wort NEIN im obigen Text in "", also wird als "Nein" dargestellt.


Habe ich die Lokalisierung auf Deutsch eingestellt de_DE.UTF-8, steht das Wort NEIN im obigen Text in einem schwarz unterlegen ?, also wird als ?Nein? dargestellt.


Warum ist die Darstellung so unterschiedlich und wie kann man dies beheben?


-----------------

Desweiteren ist mir aufgefallen, dass bei der Einrichtung der Lokalisierung je nach Variante, die

locale

unterschiedlich gesetzt werden.


Variante 1: (mittels locale.gen)

Hinzufügen des folgenden Eintrages:
de_DE.UTF-8 UTF-8

anschließend ein locale-gen
und mit eselect locale set das entsprechende Profil ausgewählt.
(In der /etc/env.d/02locale steht nun LANG="de_DE.utf8")


Variante 2: (händisch in /etc/env.d/02locale)

LANG="de_DE.UTF-8"
LC_COLLATE="C"

Danach ein env-update && source /etc/profile und die Einstellungen sollten übernommen werden.


Interessant ist jetzt, dass die locale bei Variante 1 als de_DE.utf8 gesetzt werden
und bei Variante 2 als de_DE.UTF-8

Welche Variante ist nun richtig?


In dem Guide zur Lokalisierung wird für OpenRC die Angabe mittels LANG=de_DE.UTF-8 angegeben und für Systemd mit LANG=de_DE.utf8.
Allerdings nutze ich lediglich OpenRC und habe Systemd im Kernel nicht aktiviert.


Gruß Lixos

---------------------------------------------------------------------------------------------------------------------------

Anlagen:

Ausgabe von 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=C
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=
Ausgabe von eselect Profile list mit Varianten 1 & 2:
Available targets for the LANG variable:
[1] C
[2] POSIX
[3] de_DE
[4] de_DE.iso88591
[5] de_DE.iso885915@euro
[6] de_DE.utf8
[7] de_DE@euro
[8] deutsch
[9] en_US
[10] en_US.iso88591
[11] en_US.utf8
[12] german
[13] de_DE.UTF-8 *
[ ] (free form)
Inhalt meiner consolefont:
# The consolefont service is not activated by default. If you need to
# use it, you should run "rc-update add consolefont boot" as root.
#
# 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.
consolefont="lat9w-16"

# consoletranslation 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-15_to_uni"

# unicodemap is the unicode map file to use. Leave commented to use the
# default one. Have a look in /usr/share/unimaps for a selection of map files
# you can use.
# unicodemap="lat9w"
Inhalt meiner /etc/locale.gen:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
de_DE ISO-8859-1
de_DE@euro ISO-8859-15
de_DE.UTF-8 UTF-8
#es_MX ISO-8859-1
#fa_IR UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
#it_IT ISO-8859-1
Last edited by Lixos on Tue Apr 21, 2015 7:51 pm, edited 1 time in total.
Top
py-ro
Veteran
Veteran
User avatar
Posts: 1734
Joined: Tue Sep 24, 2002 11:55 am
Location: Velbert
Contact:
Contact py-ro
Website

  • Quote

Post by py-ro » Tue Apr 21, 2015 1:59 pm

Ich denke mal du redest von der Textkonsole.

Deine UTF-8 Einrichtung ist richtig, nur gibt es aktuell kaum Fonts für die Konsole die tatsächlich alle oder zumindest die deutschen Glyphen haben.

Ein Beispiel wäre:

Code: Select all

consolefont="Unifont-APL8x16.psf"

[I] media-fonts/unifont
     Available versions:  5.1.20080914 (~)6.3.20131006 (~)6.3.20131020 (~)6.3.20131217 (~)6.3.20140204 (~)7.0.01 (~)7.0.03 (~)7.0.05 (~)7.0.06 {X fontforge utils}
     Installed versions:  7.0.06(12:42:49 24.03.2015)(X -fontforge -utils)
     Homepage:            http://unifoundry.com/
     Description:         GNU Unifont - a Pan-Unicode X11 bitmap iso10646 font
Bye
Py
Top
Lixos
n00b
n00b
User avatar
Posts: 19
Joined: Sat Apr 04, 2015 6:44 am

  • Quote

Post by Lixos » Tue Apr 21, 2015 7:51 pm

Hallo Py,

meine Fragestellung bezieht sich auf die Konsole.
In der Xorg - Umgebung klappt alles wunderbar.
Ich habe jetzt den Font für die Konsole auf Terminus umgestellt.
Schaut besser aus und damit werden die Zeichen korrekt dargestellt.

Danke für deine Hilfe.


Gruß Lixos
Top
Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Diskussionsforum”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic