Как запустить терминальную программу, выводящую в кои под UTF локалью?
26 августа, 2009 - 01:10 — darvin11
Сабж.
зы, кому нибудь ебилд руссифицированного nethack нужен? http://dpaste.com/85342/
надобы туда какой-то враппер написать чтобы не крякозябрами под утф было...
>>> Failed to emerge games-roguelike/nethack-3.4.3-r3, Log file:
>>> '/var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/build.log'
* Messages for package games-roguelike/nethack-3.4.3-r3:
* Failed Patch: 3.4.3-russian-unVC2008.patch !
* ( /usr/local/portage/games-roguelike/nethack/files/3.4.3-russian-unVC2008.patch )
*
* Include in your bugreport the contents of:
*
* /var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/3.4.3-russian-unVC2008.patch-11688.out
*
* ERROR: games-roguelike/nethack-3.4.3-r3 failed.
* Call stack:
* ebuild.sh, line 49: Called src_unpack
* environment, line 2926: Called epatch '/usr/local/portage/games-roguelike/nethack/files/3.4.3-russian-unVC2008.patch'
* environment, line 1432: Called die
* The specific snippet of code:
* die "Failed Patch: ${patchname}!";
* The die message:
* Failed Patch: 3.4.3-russian-unVC2008.patch!
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/environment'.
* This ebuild is from an overlay named 'crypton_overlay': '/usr/local/portage/'
*
% eix luit
[I] x11-apps/luit
Available versions: 1.0.2 1.0.3 {debug}
Installed versions: 1.0.3(19:03:13 24.05.2009)(-debug)
Homepage: http://xorg.freedesktop.org/
Description: Locale and ISO 2022 support for Unicode terminals
DESCRIPTION
Luit is a filter that can be run between an arbitrary application and a UTF-8 terminal emulator. It will convert application output
from the locale's encoding into UTF-8, and convert terminal input from UTF-8 into the locale's encoding.
An application may also request switching to a different output encoding using ISO 2022 and ISO 6429 escape sequences. Use of this
feature is discouraged: multilingual applications should be modified to directly generate UTF-8 instead.
Luit is usually invoked transparently by the terminal emulator. For information about running luit from the command line, see EXAMPLES
below.
если прога запускается из виртуального терминала, т.е. из эмулятора терминала, то в kde'шном есть настройки кодировки для вывода... в настройках профиля...
Если программа только
Если программа только выводит, то можно обойтись банальным:
$PROGRAM | iconv -f koi8-r -t utf8(ну и при необходимости объединить
stdoutиstderr):wq
--
Live free or die
не, это игрушка консольная )
не, это игрушка консольная ) проблема решилась перекодированием исходников ) http://bugs.gentoo.org/show_bug.cgi?id=113224
>>> Failed to emerge
>>> Failed to emerge games-roguelike/nethack-3.4.3-r3, Log file: >>> '/var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/build.log' * Messages for package games-roguelike/nethack-3.4.3-r3: * Failed Patch: 3.4.3-russian-unVC2008.patch ! * ( /usr/local/portage/games-roguelike/nethack/files/3.4.3-russian-unVC2008.patch ) * * Include in your bugreport the contents of: * * /var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/3.4.3-russian-unVC2008.patch-11688.out * * ERROR: games-roguelike/nethack-3.4.3-r3 failed. * Call stack: * ebuild.sh, line 49: Called src_unpack * environment, line 2926: Called epatch '/usr/local/portage/games-roguelike/nethack/files/3.4.3-russian-unVC2008.patch' * environment, line 1432: Called die * The specific snippet of code: * die "Failed Patch: ${patchname}!"; * The die message: * Failed Patch: 3.4.3-russian-unVC2008.patch! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/environment'. * This ebuild is from an overlay named 'crypton_overlay': '/usr/local/portage/' *ебилд и патч брал отсюда - ебилд патч
cat
cat /var/tmp/portage/games-roguelike/nethack-3.4.3-r3/temp/3.4.3-russian-unVC2008.patch-11688.out
http://pastebin.com/d17a9d976
http://pastebin.com/d17a9d976
% eix luit [I] x11-apps/luit
% eix luit
[I] x11-apps/luit
Available versions: 1.0.2 1.0.3 {debug}
Installed versions: 1.0.3(19:03:13 24.05.2009)(-debug)
Homepage: http://xorg.freedesktop.org/
Description: Locale and ISO 2022 support for Unicode terminals
DESCRIPTION Luit is a filter that can be run between an arbitrary application and a UTF-8 terminal emulator. It will convert application output from the locale's encoding into UTF-8, and convert terminal input from UTF-8 into the locale's encoding. An application may also request switching to a different output encoding using ISO 2022 and ISO 6429 escape sequences. Use of this feature is discouraged: multilingual applications should be modified to directly generate UTF-8 instead. Luit is usually invoked transparently by the terminal emulator. For information about running luit from the command line, see EXAMPLES below.:)
если прога запускается из
если прога запускается из виртуального терминала, т.е. из эмулятора терминала, то в kde'шном есть настройки кодировки для вывода... в настройках профиля...