Linux MS DOS discussions
 help / color / mirror / Atom feed
From: Grigory Batalov <bga@altlinux.org>
To: linux-msdos@vger.kernel.org
Subject: Unicode in dosemu under xterm
Date: Thu, 19 Apr 2007 16:56:32 +0400	[thread overview]
Message-ID: <20070419165632.96942967.bga@altlinux.org> (raw)

Hello!

I got a problem running dosemu in terminal (xterm): there is no Russian symbols.
Xdosemu works well. This is my settings:

$_external_char_set = "utf8"
$_internal_char_set = "cp866"
$_layout = "ru"
$_X_font = "vgacyr"

$ 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=

I've found some interesting changes in boot.log
(first - xdosemu run, second - dosemu in xterm):

...
 CONF: DPMI base addr = 0xffffffff
 CONF: PM DOS API Translator on
 CONF: No DJGPP NULL deref checks: off
-CONF: dosemu running on X
+CONF: dosemu running on _xterm
 U: charset->unicode charset:utf8 00 -> symbol:0000...1
 U: charset->unicode charset:utf8 01 -> symbol:0001...1
...
 U: charset->unicode charset:utf8 02 -> symbol:0002...1
 U: charset->unicode charset:terminal_cp866 ff -> symbol:00a0...1
 U: unicode->charset charset:terminal_cp866 symbol:00a0 -> char:ff...1
-U: charset->unicode charset:X_keysym 61,00,00,00,00,00,00,00 -> symbol:0061...8
-U: charset->unicode charset:X_keysym 61,00,00,00,00,00,00,00 -> symbol:0061...8
-U: charset->unicode charset:X_keysym 73,00,00,00,00,00,00,00 -> symbol:0073...8
-U: charset->unicode charset:X_keysym 73,00,00,00,00,00,00,00 -> symbol:0073...8
-U: charset->unicode charset:X_keysym 64,00,00,00,00,00,00,00 -> symbol:0064...8
-U: charset->unicode charset:X_keysym 64,00,00,00,00,00,00,00 -> symbol:0064...8
-U: charset->unicode charset:X_keysym e4,ff,00,00,00,00,00,00 -> symbol:e134...8
-U: charset->unicode charset:X_keysym 08,fe,00,00,00,00,00,00 -> symbol:ffff...8
-U: charset->unicode charset:X_keysym e4,ff,00,00,00,00,00,00 -> symbol:e134...8
-U: charset->unicode charset:X_keysym e2,ff,00,00,00,00,00,00 -> symbol:e136...8
<Russian starts here>
-U: charset->unicode charset:X_keysym c6,06,00,00,00,00,00,00 -> symbol:0444...8
-U: charset->unicode charset:X_keysym c6,06,00,00,00,00,00,00 -> symbol:0444...8
-U: charset->unicode charset:X_keysym d9,06,00,00,00,00,00,00 -> symbol:044b...8
-U: charset->unicode charset:X_keysym d9,06,00,00,00,00,00,00 -> symbol:044b...8
-U: charset->unicode charset:X_keysym d7,06,00,00,00,00,00,00 -> symbol:0432...8
-U: charset->unicode charset:X_keysym d7,06,00,00,00,00,00,00 -> symbol:0432...8
-U: charset->unicode charset:X_keysym c1,06,00,00,00,00,00,00 -> symbol:0430...8
-U: charset->unicode charset:X_keysym c1,06,00,00,00,00,00,00 -> symbol:0430...8
+U: charset->unicode charset:utf8 61 -> symbol:0061...1
+U: charset->unicode charset:utf8 73 -> symbol:0073...1
+U: charset->unicode charset:utf8 64 -> symbol:0064...1
<Russian starts here>
+U: charset->unicode charset:utf8 d1,84 -> symbol:3444...2
+U: charset->unicode charset:utf8  -> symbol:ffff...18446744073709551615:84(Invalid or incomplete multibyte or wide character)
+U: charset->unicode charset:utf8 d1,8b -> symbol:344b...2
+U: charset->unicode charset:utf8  -> symbol:ffff...18446744073709551615:84(Invalid or incomplete multibyte or wide character)
+U: charset->unicode charset:utf8 d0,b2 -> symbol:3432...2
+U: charset->unicode charset:utf8  -> symbol:ffff...18446744073709551615:84(Invalid or incomplete multibyte or wide character)
+U: charset->unicode charset:utf8 d0,b0 -> symbol:3430...2
+U: charset->unicode charset:utf8  -> symbol:ffff...18446744073709551615:84(Invalid or incomplete multibyte or wide character)

Above I've typed in 'asd' letters, and then 'asdf' keys in Russian locale
(that sounds like 'fyva'). Also there was

+U: charset->unicode charset:cp866 e4 -> symbol:0444...1
+U: unicode->charset charset:utf8 symbol:0444 -> char:d1,84...2

So I don't understand, why d1,84 became later symbol:3444 instead of symbol:0444.
This is a 2.6.18 kernel on x86_64 platform.

Could anybody help me?


             reply	other threads:[~2007-04-19 12:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-19 12:56 Grigory Batalov [this message]
2007-04-20 13:23 ` Unicode in dosemu under xterm Bart Oldeman
2007-04-20 14:50   ` Grigory Batalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070419165632.96942967.bga@altlinux.org \
    --to=bga@altlinux.org \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox