From: Mikhail Zabaluev <mhz@alt-linux.org> To: mandrake-russian@altlinux.ru Subject: [mdk-re] Re: Вопрос по локали... Date: Fri Sep 28 21:22:05 2001 Message-ID: <20010928213531.H15453@localhost.localdomain> (raw) In-Reply-To: <20010927231141.38abbaea.rromas@mailru.com>; from rromas@mailru.com on Thu, Sep 27, 2001 at 11:11:41PM +0400 Hello Roman, On Thu, Sep 27, 2001 at 11:11:41PM +0400, Roman S wrote: > > On Thu, 27 Sep 2001 11:20:45 +0400 > "Serge Ivanoff" <SergeIV@mail.ru> wrote: > > > Проблем такой: > > > > В результате долгих раскопок выяснилось что функция isprintable() не > > воспринимает русские буквы. > > т.е судя по описанию набор символов которые она воспринимает как > > печатабельные зависит от локали - в русской локали должно воспринимать > > русские буквы. А вот и не работает. > > Кто наступал на это? Как решили проблему? Результат "echo $LANG; echo $LC_CTYPE" -- в студию. > > Имеется в виду isprint? > Не огорчайтесь, такая же ерундень со всеми функциями группы ctype. $ perl -MPOSIX -e 'for ($c = 0x80; $c <= 0xff; $c++) { printf("%X\n", $c) unless isprint(chr($c)); }' 9A То же самое с LC_CTYPE=C дает все коды; насколько я понимаю, все, что выше Latin-1, считается в локали C непечатным. В чем же ерундень? Модуль POSIX, AFAIK, просто использует функции libc. -- Stay tuned, MhZ JID: mookid@jabber.org ___________ Bell Labs Unix -- Reach out and grep someone.
next prev parent reply other threads:[~2001-09-28 21:22 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-27 11:02 [mdk-re] " Serge Ivanoff 2001-09-28 1:33 ` Roman S 2001-09-28 9:52 ` [mdk-re] " Serge Ivanoff 2001-09-28 21:22 ` Mikhail Zabaluev [this message] 2001-09-28 22:23 ` [mdk-re] " Roman S 2001-09-28 22:37 ` Aleksey Novodvorsky 2001-09-28 23:09 ` Roman S 2001-09-29 12:47 ` Sergey Vlasov 2001-09-29 19:18 ` Roman S 2001-09-28 17:53 ` [mdk-re] " Sergey Vlasov
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=20010928213531.H15453@localhost.localdomain \ --to=mhz@alt-linux.org \ --cc=mandrake-russian@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 Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git