From: Robert Citek <[EMAIL PROTECTED]>
> At 12:04 AM 10/26/2002 +0200, Jenda Krynicky wrote:
> >From: Robert Citek <[EMAIL PROTECTED]>
> >> This sounds like something that perl should be able to handle by
> >> changing the locale so that you do not have to alter the source
> >> file.
> >
> >I hope NOT! This would break tons of modules!
> 
> Perhaps.  But then those modules should be upgraded to handle
> internationalization.

Well ... do you really think there would be any way for the module to 
cope with the fact that under some locales it is supposed to use
        $rate = 1.4262;
and under some
        $rate = 1,4262;
?

That was the original question!

Yes of course Perl should be able to parse the right format of 
numbers in the data entered by users, but that's a different issue.

> On your suggestion, I did.  I highly recommend it for anyone suffering
> from insomnia.  :)

OK, I will.
 
> What would be really useful in the documentation is a good example of
> how to change locales and the effects.  For example, in non-perl
> pseudo-code:
>  1- show current locale
>  2- display 123456.789 and July 1st, 2001 
>  3- change to different locale
>  4- show new current locale
>  5- display 123456.789 and July 1st, 2001 
>  6- repeat 3-5 for any number of locales
> 
> I'd be happy to write the sample code if someone could point me in the
> right direction.

Sorry, not me.
Even though I am Czech and not American all the stuff I'm writing is 
used in States and/or is not supposed to speak to normal lusers so I 
don't know anything about locales yet.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to