From: Vitaly Lipatov <lav@altlinux.ru> To: ALT Devel discussion list <devel@altlinux.ru> Subject: [devel] Вывод utf8 в консоль Date: Sun, 20 Jun 2004 14:39:40 +0400 Message-ID: <200406201439.40718.lav@altlinux.ru> (raw) Как показывает практика, в большинстве программ, написанных на gtk2, вывод в консоль осуществляется с помощью функции g_printf, которая есть ни что иное, как обёртка для vprintf. Поскольку внутри программ на gtk2 используется кодировка UTF8 (обратных примеров не знаю), на консоль выводится нечитаемая UTF8, без всякого перекодирования. Вопроса два: 1. Есть ли общепринятое решение проблемы. 2. Правильно ли будет исправить g_printf, чтобы она производила необходимые преобразования перед выводом в консоль? P.S. Предлагать вставлять вызов g_locale_from_utf8 перед каждым g_printf, думаю, не стоит. -- Lav Виталий Липатов Санкт-Петербург GNU! ALT Linux Team! LaTeX! LyX!
next reply other threads:[~2004-06-20 10:39 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-06-20 10:39 Vitaly Lipatov [this message] 2004-06-20 12:31 ` [devel] " Mikhail Zabaluev 2004-06-20 12:43 ` 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=200406201439.40718.lav@altlinux.ru \ --to=lav@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