ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Mikhail Zabaluev <mookid@sigent.ru>
To: Mandrake-russian@linuxteam.iplabs.ru
Subject: Re: [mdk-re] tr (case conversion)
Date: Fri Mar  2 22:11:15 2001
Message-ID: <20010302103254.G2684@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.33L.0103011624060.1979-100000@zephyrous.ru>; from imz@linux.ru.net on Thu, Mar 01, 2001 at 04:29:43PM +0300

Hello Ivan,

On Thu, Mar 01, 2001 at 16:29 +0300, Ivan Zakharyaschev wrote:
>
> 	Здравствуйте!
> 
> Возвращаясь к вопросу о преобразовании регистра букв в названиях:
> 
> tr, оказывается, неплохо интернационализован, русскую В только не любит:
> 
> $ echo абв-abc | tr a-z A-Z
> абв-ABC
> $ echo абв-abc | tr [:lower:] [:upper:]
> АБВ-ABC
> $ echo абв-abc | tr а-я А-Я
> АБв-abc
> $ echo абвгд-abc | tr а-я А-Я
> АБвГД-abc
> $ locale
> LANG=ru_RU.KOI8-R

Э-э-э, батенька... Второй вариант, возможно, работает так, как надо.
А диапазоны в KOI8 задавать - гиблое дело, он не упорядочен по русскому
алфавиту. И "Ё" выпадает. Лучше уж перловые lc/uc после 'use locale;',
см. мое другое сообщение.

-- 
Stay tuned,
  MhZ                                    mailto:mookid@sigent.ru
-----------
Save gas, don't eat beans.



      parent reply	other threads:[~2001-03-02 22:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-01 16:27 Ivan Zakharyaschev
2001-03-01 16:39 ` Aleksey Novodvorsky
2001-03-02 22:11 ` Mikhail Zabaluev [this message]

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=20010302103254.G2684@localhost.localdomain \
    --to=mookid@sigent.ru \
    --cc=Mandrake-russian@linuxteam.iplabs.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