From: Mikhail Zabaluev <mhz@altlinux.org> To: ALT Devel discussion list <devel@altlinux.ru> Subject: [devel] Re: Вывод utf8 в консоль Date: Sun, 20 Jun 2004 16:31:27 +0400 Message-ID: <20040620123127.GA15196@av1046.comex.ru> (raw) In-Reply-To: <200406201439.40718.lav@altlinux.ru> [-- Attachment #1: Type: text/plain, Size: 961 bytes --] Hello Vitaly, On Sun, Jun 20, 2004 at 02:39:40PM +0400, Vitaly Lipatov wrote: > > Как показывает практика, в большинстве программ, > написанных на gtk2, вывод в консоль осуществляется > с помощью функции g_printf, которая есть ни что иное, как обёртка > для vprintf. Поскольку внутри программ на gtk2 используется > кодировка UTF8 (обратных примеров не знаю), на консоль > выводится нечитаемая UTF8, без всякого перекодирования. > Вопроса два: > 1. Есть ли общепринятое решение проблемы. Нет. Вывод в консоль в GTK-приложениях -- не та вещь, которую стоит локализовать. > 2. Правильно ли будет исправить g_printf, чтобы она производила > необходимые преобразования перед выводом в консоль? Неправильно. g_printf аналог printf и должен подчиняться всем конвенциям последнего. -- Stay tuned, MhZ JID: mhz@altlinux.org ___________ We don't know one millionth of one percent about anything. [-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-06-20 12:31 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-06-20 10:39 [devel] " Vitaly Lipatov 2004-06-20 12:31 ` Mikhail Zabaluev [this message] 2004-06-20 12:43 ` [devel] " Vitaly Lipatov 2004-06-21 5:23 ` Вячеслав Диконов 2004-06-21 7:27 ` Vitaly Lipatov 2004-06-26 9:57 ` Michael Shigorin 2004-06-26 18:11 ` Mikhail Zabaluev 2004-06-27 14:14 ` Michael Shigorin 2004-06-27 15:39 ` [devel] Re: Вывод utf8 в консоль [JT] Vitaly Lipatov 2004-06-21 10:51 ` [devel] Вывод utf8 в консоль Dmitry Vukolov
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=20040620123127.GA15196@av1046.comex.ru \ --to=mhz@altlinux.org \ --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