1863005 Members
1385 Online
110446 Solutions
New Discussion

Re: Regional Settings

 

Regional Settings

Hello All.

I have one question:
How can I change the regional settings ? for example: Nunbers, Date, etc.
Because, we have an application and it use a nunber in brazilian format (###.###,##) and in the system is ###,###,##.
Thanks for all.
rodriguescj
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor

Re: Regional Settings

This is determined by the environment - specifically the LC_NUMERIC value. Man 5 environ for details and other settings such as LC_MONETARY. Within an application this is typically done using the setlocale() function although you can also set and export the environment before executing the application.
If it ain't broke, I can fix that.
Alex Glennie
Honored Contributor

Re: Regional Settings

At a guess I'd set the LANG and associated variables : see man 5 environ ie

LC_NUMERIC and LC_MONETARY
Tom Danzig
Honored Contributor

Re: Regional Settings

man locale