From: "Aleksander N.Gorohovski" <angel@feht.dgtu.donetsk.ua> To: "ALT Linux Community" <community@lists.altlinux.org> Subject: Re: [Comm] TZ: number 2 RU_string Date: Wed, 08 Mar 2006 19:35:35 -0000 Message-ID: <op.s530plx7mb8vzs@oc.peooc.net> (raw) In-Reply-To: <m3hd68dhhi.fsf@evg.krasnoyarsk.ru> On Wed, 08 Mar 2006 16:32:57 -0000, Evgenii Terechkov wrote: > "Aleksander N.Gorohovski" writes: > >> Как и обещал (в первую голову Михаилу Шигорину и команде ALT по ТЗ) в >> атаче >> perl-сценарий для вывода прописью заданного числа(чисел) на русском >> языке. > ... >> Ограничение: >> число(а) должно быть не более 999 999 999 999 > > По поводу этого - ниже. > >> Буду признателен за конструктивную критику и пожелания. > > Наверно было б хорошо при привышений лимита не выводить > ">999999999999", а > выводить само число и/или возвращать ненулевой код возврата. Эт, да. Если выводить число - это можно воспринимать за ошибку (т.е. не нулевой код). Но хотелось бы ещё мнений. > А с кодировками - зачем это? Этим пусть другая тулза займётся :-) Сейчас вывод строки результата в KOI8-R, а если запустить в локали с CP1251 / UTF8 будет не хорошо. Есть мысль определить текущую кодировку и с помощью, например, iconv -f koi8-r -t ... выполнять адаптацию к местным условиям.
next prev parent reply other threads:[~2006-03-08 19:35 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-03-08 18:06 Aleksander N.Gorohovski 2006-03-08 16:09 ` Andrey Rahmatullin 2006-03-08 18:19 ` Aleksander N.Gorohovski 2006-03-08 16:18 ` Andrey Rahmatullin 2006-03-08 18:44 ` Aleksander N.Gorohovski 2006-03-08 16:44 ` Andrey Rahmatullin 2006-03-08 16:32 ` Evgenii Terechkov 2006-03-08 19:35 ` Aleksander N.Gorohovski [this message] 2006-03-08 17:55 ` Evgenii Terechkov 2006-03-08 16:43 ` Dmitry V. Levin 2006-03-08 17:02 ` Sergey Lizogub 2006-03-08 20:10 ` Aleksander N.Gorohovski 2006-03-08 22:44 ` Vitaly Lipatov 2006-03-09 11:43 ` Michael Shigorin 2006-03-09 19:02 ` Aleksander N.Gorohovski
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=op.s530plx7mb8vzs@oc.peooc.net \ --to=angel@feht.dgtu.donetsk.ua \ --cc=community@lists.altlinux.org \ /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