ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Andrey Brindeew <abr@altlinux.ru>
To: Devel <devel@altlinux.ru>
Subject: [devel] Russian characters & GTK2 (pango)
Date: Mon, 8 Sep 2003 10:50:16 +0400
Message-ID: <20030908065016.GB16619@abr.tool.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 911 bytes --]

Hi!

Попытался собрал на днях JPilot с GTK2 и понял, что там всё плохо с
интернационализацией. Программа пытается выводить однобайтовые данные, в
результате чего в половине контролов мы не видим ничего, а в другой
половине - так называемые "кракозябры" (ISO).

Вопрос следующий: как правильно выводить русские символы в программе на
языке Си, которая использует GTK2?

P.S. Русский перевод, который сделан в CP1251, выводится в GTK2-сборке
без проблем, в отличие от других данных, которые jpilot выводит
самостоятельно. При работе с GTK2-сборкой в консоли видим кучу
ворнингов:

** (jpilot:18821): WARNING **: Invalid UTF8 string passed to
pango_layout_set_text()

Но вызова этой функции напрямую в коде jpilot я не нашел.

P.P.S. Ссылки на программы, где сделана нормально интернационализация,
будет достаточно.

-- 
WBR, Andrey Brindeew.
"No one person can understand Perl culture completely"
(C) Larry Wall.

[-- Attachment #2: Type: application/pgp-signature, Size: 245 bytes --]

             reply	other threads:[~2003-09-08  6:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-08  6:50 Andrey Brindeew [this message]
2003-09-08  7:33 ` Sviatoslav Sviridov/Lintec Project

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=20030908065016.GB16619@abr.tool.ru \
    --to=abr@altlinux.ru \
    --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