[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: thousands separator
From: |
Aharon Robbins |
Subject: |
Re: thousands separator |
Date: |
Mon, 06 Jul 2009 20:52:40 +0300 |
Hi. Try this program and let us know what you get.
I suspect that if you compile it with cygwin that it will work; it
would be a better test to compile with djgpp or whatever the gnuwin32
project uses.
Eli - maybe you can supply Gary a binary of this program?
Thanks,
Arnold
> Date: Sun, 05 Jul 2009 07:42:24 -0400
> To: Eli Zaretskii <address@hidden>, Aharon Robbins <address@hidden>
> From: Gary Ashburn <address@hidden>
> Subject: Re: thousands separator
> Cc: address@hidden
>
> I have cygwin (gcc), VB and .NET
>
> I don't know what it is you want me to do though in the code. If you
> can send me the code you want tested I'll compile it.
>
> At 03:05 PM 7/4/2009, Eli Zaretskii wrote:
> > > Date: Sat, 04 Jul 2009 21:51:01 +0300
> > > From: Aharon Robbins <address@hidden>
> > > Cc: address@hidden, address@hidden
> > >
> > > I retrieve the locale information when the program starts up (by a call
> > > to localeconv()) and copy the structure. This is in main().
> > >
> > > The actual formatting is handled manually in format_tree() in builtin.c.
> > >
> > > It sounds like a Vista bug. Eli, you're using XP, right?
> >
> >I use XP, yes.
> >
> >Gary, do you have a Windows compiler installed that you can use to
> >build programs? If so, how about writing a short test program that
> >calls localeconv and then prints what localeconv returned in the
> >`thousands_sep' member of the lconv structure it returns?
-------------- save as thousep.c --------------------------
#include <stdio.h>
#include <locale.h>
struct lconv loc; /* current locale */
int
main(int argc, char **argv)
{
setlocale(LC_NUMERIC, "");
loc = *localeconv();
printf("decimal_point = %s\n", loc.decimal_point);
printf("thousands_sep = %s\n", loc.thousands_sep);
printf("grouping; = %s\n", loc.grouping);
printf("int_curr_symbol; = %s\n", loc.int_curr_symbol);
printf("currency_symbol = %s\n", loc.currency_symbol);
printf("mon_decimal_point = %s\n", loc.mon_decimal_point);
printf("mon_thousands_sep = %s\n", loc.mon_thousands_sep);
printf("mon_grouping = %s\n", loc.mon_grouping);
printf("positive_sign = %s\n", loc.positive_sign);
printf("negative_sign = %s\n", loc.negative_sign);
return 0;
}
Re: thousands separator, Aharon Robbins, 2009/07/04
Re: thousands separator,
Aharon Robbins <=
Re: thousands separator, Gary Ashburn, 2009/07/06
Re: thousands separator, Aharon Robbins, 2009/07/07
Re: thousands separator, Aharon Robbins, 2009/07/08
Re: thousands separator, Aharon Robbins, 2009/07/08