ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Linux Sisyphus mailing list <sisyphus@lists.altlinux.org>
Cc: "Петр Никольский" <kipk47@gmail.com>
Subject: Re: [sisyphus] [necropost] gnucash, ru_RU.UTF-8 и запятая
Date: Sat, 3 Nov 2012 19:11:54 +0400
Message-ID: <20121103151154.GA29806@altlinux.org> (raw)
In-Reply-To: <CAGvFrt2U2Mn-q6y7Y6Sr2Pcfacvb8wNHn-Us39=zSS+bffc+wg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2067 bytes --]

On Sat, Jul 23, 2011 at 01:15:41PM +0400, Aleksey Novodvorsky wrote:
> 23 июля 2011 г. 13:04 пользователь Dmitry Chistikov написал:
> > "Vasyĺ V. Vercynśkyj", Jul. 22, 2011, 12:43 +0300:
> >> Тогда они зашевелились и вынесли вердикт, что у нас кривая локаль (и,
> >> походу, в Убунту 11.04 тоже).  Я немного сомневаюсь в правильности их
> >> выводов. Чем крыть?
> >
> > Кое в чем разработчики Gnucash правы:
> >
> > $ locale | fgrep -v ru_RU.UTF-8
> > LC_ALL=
> > $ locale -k decimal_point mon_decimal_point
> > decimal_point=","
> > mon_decimal_point="."
> >
> > Иными словами, в ru_RU для чисел десятичный разделитель - запятая,
> > а для денежных сумм - точка.
> 
> Последнее, похоже, -- бага в glibc. Не умышленная, -- скорее всего,
> просто не исправили после копирования из другой локали. Спросил сейчас
> у  программиста из банка, -- всюду запятая, в том числе в отчетности
> для ЦБ. И пробелы в качестве разделителей между тройками разрядов.
> Исправить недолго, но надо прежде оценить последствия.

Было бы здорово, если бы удалось найти ссылки, подтверждающие сложившуюся
практику использования десятичных разделителей в ru_RU.

Поскольку ответ на вопрос "как правильно" не очевиден, предлагаю следовать
действующим glibcшным правилам:
http://sourceware.org/glibc/wiki/Contribution%20checklist#Qualification_.28Locales.29


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  parent reply	other threads:[~2012-11-03 15:11 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22 16:02 [sisyphus] " Vaso VV
2011-03-24 11:31 ` Андрей Черепанов
2011-03-24 13:44   ` Vaso VV
2011-03-24 11:47 ` Alexey Morsov
2011-03-24 11:58   ` REAL
2011-03-24 11:57     ` Андрей Черепанов
2011-03-24 12:30     ` Alexey Morsov
2011-03-24 12:33       ` Aleksey Novodvorsky
2011-03-24 13:44   ` Vaso VV
2011-07-22  9:43 ` [sisyphus] [necropost] " "Vasyĺ V. Vercynśkyj"
2011-07-22 12:17   ` Rinat Bikov
2011-07-23  9:04   ` Dmitry Chistikov
2011-07-23  9:15     ` Aleksey Novodvorsky
2011-07-23  9:59       ` "Vasyĺ V. Vercynśkyj"
2011-07-23 10:20       ` Dmitry Chistikov
2011-07-23 11:47         ` Paul Wolneykien
2012-11-03 15:11       ` Dmitry V. Levin [this message]
2012-11-03 15:20         ` Aleksey Novodvorsky
2012-11-03 16:48           ` Dmitry V. Levin
2011-07-23  9:59     ` "Vasyĺ V. Vercynśkyj"
2011-07-25  8:00   ` "Vasyĺ V. Vercynśkyj"
2011-07-25  9:11     ` Dmitry Chistikov
2011-07-25 11:35       ` "Vasyĺ V. Vercynśkyj"
2011-07-25 12:37         ` Dmitry Chistikov
2011-07-26 10:53           ` Igor Zubkov
2011-07-27 10:50             ` Dmitry Chistikov
2011-07-27 11:07               ` Dmitry Chistikov
2011-07-28 16:41               ` Igor Zubkov
2011-07-28 18:38                 ` Dmitry Chistikov
2011-07-26  6:14         ` Денис Смирнов
2011-07-26  7:41           ` "Vasyĺ V. Vercynśkyj"
2011-07-26  9:53             ` Денис Смирнов

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=20121103151154.GA29806@altlinux.org \
    --to=ldv@altlinux.org \
    --cc=kipk47@gmail.com \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git