[cl-l10n-devel] Problem with it_IT locale
Andrea Chiumenti
kiuma72 at gmail.com
Wed Mar 5 18:46:31 UTC 2008
Sorry!
On Wed, Mar 5, 2008 at 7:45 PM, Andrea Chiumenti <kiuma72 at gmail.com> wrote:
>
> (with-locale (locale 'it_IT) (let ((cl-l10n:*float-digits* nil)) (format
> nil "~:/cl-l10n:format-number/" 1000.04)) )
> => "1,0,0,0,0399780273438"
> should be 1'000,0399780273438
>
> (with-locale (locale 'it_IT) (format-number *standard-output* 99.04 t
> nil))
> => 9,9,04;
> should be
> 99,44
>
>
>
> On Wed, Mar 5, 2008 at 7:01 PM, Attila Lendvai <attila.lendvai at gmail.com>
> wrote:
>
> > > > use with-locale, it's not that simple as binding a string...
> > >
> > > Although it is undocumented and rather unused, i would expect it to
> > > work, as the cl-l10n operators do accept locale designators rather
> > > than locale objects.
> >
> > it's arguable and i'm not strongly against it. the rational behind the
> > current setup is that if *locale* is always a normalized list of
> > locale instances (precedence list) then all code dealing with *locale*
> > can assume this and avoid the headache (and some performance loss if
> > each function needs to look up the locales for itself).
> >
> > while using with-locale, this normalization is only at one place.
> >
> > i'd instead argue for not exporting *locale* and advertising
> > current-locale and with-locale.
> >
> > --
> > attila
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-l10n-devel/attachments/20080305/edeb4ced/attachment.html>
More information about the cl-l10n-devel
mailing list