ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [mdk-re] locale
@ 2001-04-23 16:22 Maxim Savrilov
  0 siblings, 0 replies; only message in thread
From: Maxim Savrilov @ 2001-04-23 16:22 UTC (permalink / raw)
  To: mandrake-russian

подскажите, как самому сделать локаль
пробовал localеdef - не реагирует
Если точно, то надо сделать, чтобы decimal point был запятой. В 7.0 RE я
ставил локаль nl_NL и все замечательно работало
Теперь, похоже, у всех локаль по этой части одинаковая, во всяком случае
в /usr/share/i18n/ у всех стоит
decimal_point           "<U002C>"
И как это понять?
В RE было просто <,>, а теперь вот. Попытки поменять на <U002D> и
<U002B> ни к чему не привели, как выводилось с точкой, так и выводится
вот пример
#!/usr/local/bin/perl
#use POSIX qw(strftime);
use POSIX qw(locale_h);
use POSIX qw(strtod);
use locale;

               # query and save the old locale
               $old_locale = setlocale(LC_ALL);

               setlocale(LC_ALL, "nl_NL");

   printf("%0.2f\n", 234572365238756/1024/1024*6/100*12/10);

               setlocale(LC_ALL, $old_locale);

Помогите, очень надо.
Спасибо




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-23 16:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23 16:22 [mdk-re] locale Maxim Savrilov

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