Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redhat 4: Howto set decimal separator? 1

Status
Not open for further replies.

7280

MIS
Apr 29, 2003
331
IT
Hi,
how can I change the decimal separator?
Now it's ".", I need to put ",".
I changed LANG variable from UTF8 to LANG=en_US.885915 but nothing changed.

Thanks in advance.
 
I found LC_MONETARY variable but I don't know to what value I have to set it.
 
I tried also to set:
export LANG=it
export LC_CTYPE=iso-8859-1

But still seeing decimal separator ".
 
Hi,

try LANG=it_IT
Code:
[root@horus ~]# LANG=C
[root@horus ~]# vgdisplay |grep Alloc
  Alloc PE / Size       7573 / 29.58 GB
  Alloc PE / Size       4165 / 16.27 GB
[root@horus ~]# LANG=it_IT
[root@horus ~]# locale
LANG=it_IT
LC_CTYPE="it_IT"
LC_NUMERIC="it_IT"
LC_TIME="it_IT"
LC_COLLATE="it_IT"
LC_MONETARY="it_IT"
LC_MESSAGES="it_IT"
LC_PAPER="it_IT"
LC_NAME="it_IT"
LC_ADDRESS="it_IT"
LC_TELEPHONE="it_IT"
LC_MEASUREMENT="it_IT"
LC_IDENTIFICATION="it_IT"
LC_ALL=
[root@horus ~]# vgdisplay |grep Alloc
  Alloc PE / Size       7573 / 29,58 GB
  Alloc PE / Size       4165 / 16,27 GB
[root@horus ~]#
Ali
 
Thanks, that solved the problem.
But LC_CTYPE=iso-8859-1 should not be set otherwise the problem persists.
 
Hi,

If you want more tuning, only LC_NUMERIC will be set
Code:
[b]LANG=C
export LC_NUMERIC=it_IT@euro
locale[/b]

LANG=C
LC_CTYPE="C"
LC_NUMERIC=it_IT@euro
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

[b]vgdisplay |grep Alloc[/b]
  Alloc PE / Size       7573 / 29,58 GB
  Alloc PE / Size       4165 / 16,27 GB


to see what it_ you have,

[b]ls -d1 /usr/lib/locale/it*[/b]

/usr/lib/locale/it_CH
/usr/lib/locale/it_CH.utf8
/usr/lib/locale/it_IT
/usr/lib/locale/it_IT.utf8
/usr/lib/locale/it_IT@euro

Ali


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top