Re: POSIX::localeconv()/Germany
On Wed, May 23, 2001 at 03:05:59PM -0500, Mike Jarvis wrote: Wednesday, May 23, 2001, 2:45:24 PM, Dave Cross wrote: DC Haven't tried the routine you're talking about, but if you ever decide to DC give up on them, the Number::Format module (from CPAN) will solve all of DC your problems. After RTFM'ing about that fine module, I thought I found my problem. I was using thousand_sep instead of mon_thousand_sep (for money). Alas, the same problem occurs. Number::Format gets it's locale info from POSIX::localeconv, so other than the niceness of have it doing the formating of the numbers, it doesn't look like it will help me much. :( What happens if you set LC_ALL to de_DE in the environment? I can make the correct separator appear then using the locale command: % env LC_ALL=de_DE locale mon_thousands_sep . % env LC_ALL=de_DE locale mon_decimal_point , And I would imagine that perls locale stuff is just a veneer over the C library... Especially as it's POSIX::localeconv you're using. ;-) -Dom
Re: POSIX::localeconv()/Germany
At 20:18 23/05/2001, you wrote: Anybody have experience with POSIX localization functions/clients in Germany? I've got a client in .de that wants prices to look like this: DEM 1.234,00 i.e., the thousands sep is a . and the decimal is a ,. The posix routines return a space for the thousands sep and a dot for the decimal, so prices look like: DEM 1 234.00 Do I just have weird clients or is $lconv-{thousands_sep} returning the wrong value? Mike, Haven't tried the routine you're talking about, but if you ever decide to give up on them, the Number::Format module (from CPAN) will solve all of your problems. Danke, Bitte, Dave... -- http://www.dave.org.uk SMS: [EMAIL PROTECTED] Perl Training in the UK http://www.iterative-software.com/training/
Re: POSIX::localeconv()/Germany
Wednesday, May 23, 2001, 2:45:24 PM, Dave Cross wrote: DC Haven't tried the routine you're talking about, but if you ever decide to DC give up on them, the Number::Format module (from CPAN) will solve all of DC your problems. After RTFM'ing about that fine module, I thought I found my problem. I was using thousand_sep instead of mon_thousand_sep (for money). Alas, the same problem occurs. Number::Format gets it's locale info from POSIX::localeconv, so other than the niceness of have it doing the formating of the numbers, it doesn't look like it will help me much. :( -- mike