Gentooコンソールのロシア語の文字は「?」です。

Gentooコンソールのロシア語の文字は「?」です。

私のGnomeアプリケーションではロシア語を使用できましたが、コンソール(Alt-Shift-F2など)やGnome端末では機能しません。

valyagentoo va1en0k # locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=ru_RU.UTF-8


valyagentoo va1en0k # cat /etc/conf.d/consolefont 
# /etc/conf.d/consolefont

# 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

CONSOLEFONT="UniCyr-sans"

# 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-1_to_uni"

ベストアンサー1

私の提案のいくつかは次のとおりです。

  • useflagを有効にしましたかunicode?これがなければ、zshUnicodeサポートでコンパイルされません。これを使用する場合は、bashlibreadlineを介してUnicodeをサポートする必要があります。kshまた、tcshUnicodeはまったくサポートされていません。
  • ロケールやフォントの選択かもしれませんが、私が収集した内容によると大丈夫です。ロケールをリストし、/etc/locale.genコマンドラインから生成します。locale-gen

またぜひ見てくださいGentooでUTF-8を使うGentooドキュメントの指示。

おすすめ記事