ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Anton V. Boyarshinov" <boyarsh@ru.echo.fr>
To: devel@altlinux.ru
Subject: [devel] tuxtype2, SDL и русские буквы -- нужна помощь
Date: Wed, 26 May 2004 13:52:12 +0400
Message-ID: <20040526092241.713D72B522@mail.ru.echo.fr> (raw)

Добрый день

У меня 2 традиционные новости:

1) tuxtype2 теперь поддерживает русский язык

2) эта поддержка не работает, а именно при вводе русских букв
ничего не происходит.

Покопавшись в коде, я нашёл там немало странного, но, судя по
отладочной печати, которую я туда наставил, туда приходят уже
неверные значения символов. Соответственно, я полез в код SDL.
Там я обнаружил следующий код, использующийся для получения
unicode значения для события клавиатуры:

Файл: src/video/x11/SDL_x11events.c
---------------------------------
         /* Look up the translated value for the key event */
         if ( XLookupString(xkey, (char *)keybuf, sizeof(keybuf),
                                               NULL, &state) ) {
                 /*
                  * FIXME,: XLookupString() may yield more than
one
                  * character, so we need a mechanism to allow
for
                  * this (perhaps generate null keypress events
with
                  * a unicode value)
                  */
                  keysym->unicode = keybuf[0];
         }
--------------------------------

Мне кажется, что для русского языка это не должно работать, но
утверждать не возьмусь, так как практически не имею опыта в
программировании под Х, а  man XLookupString показался мне
недостаточно ясным.

Кто-нибудь может подтвердить или опровергнуть мою гипотезу?

С уважением,
Антон
-- 
mailto:boyarsh@mail.ru
mailto:boyarsh@ru.echo.fr
 13:44:00  up 1 day, 23:40,  8 users,  load average: 0.32, 0.08,
0.02


             reply	other threads:[~2004-05-26  9:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-26  9:52 Anton V. Boyarshinov [this message]
2004-05-27 11:00 ` [devel] Re: tuxtype2, SDL и русские буквы -- проблема решена Anton V. Boyarshinov

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=20040526092241.713D72B522@mail.ru.echo.fr \
    --to=boyarsh@ru.echo.fr \
    --cc=devel@altlinux.ru \
    /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

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git