From: Mojca M. <moj...@gm...> - 2006-07-15 00:15:43
|
On 7/15/06, Ethan Merritt wrote: > On Friday 14 July 2006 03:49 pm, you wrote: > > > > For example, how can I print numbers in the form > > > > $1.000,00 > > > > $2.000,00 > > > > $1.234.567,89 > > > > > > Perhaps "locale" is not the first word that springs to mind, > > > but it is the standard term for internationalization settings. > > > > For decimal sign that's OK, but I want to change the separator for > > thousand(s) as well. > > That is supposed to be under the control of LC_NUMERIC and LC_MONETARY > in your locale environment. That is ... where? (I know where you can "point-and-click" to change it, but that's not it.) > > Btw: how can I modify the locale to something other than the default > > on my computer under windows? > > Ugh. Windows. I have no idea. Ask Microsoft. > Do you at least have the equivalent of a command "locale -a" > which shows you all the available locale settings? I don't know where. I have many unix-like stuff installed (grep, diff, cp, mv, non-working version of locate, ...) but no "locale". > > I tried > > set locale "sl" > > set locale "si" > > set locale "sl_SI" > > set locale "sl_SI.utf8" > > set locale "sl_SI.cp1250" > > but I always get "Could not find requested locale." > > I don't have sl_SI.<anything> installed on my machines, but > by analogy to the locales I do have installed, I think for me > it would be > > set locale "sl_SI.UTF-8" But that doesn't work either. Any "linux-like" locale doesn't seem to work under Windows. But set decimalsign locale works OK, so I guess that set thousandseparator locale (or whatever) might be doable as well. Do you want to say that the thousand separator is automatically placed under linux if you set the proper locale? Thanks, Mojca |