[Qt-interest] javascript and locale?
Girish Ramakrishnan
girish at forwardbias.in
Wed Oct 12 05:05:36 CEST 2011
On Tue, Oct 11, 2011 at 10:55 PM, Frank Hemer <frank at hemer.org> wrote:
> Hello,
>
> I'm trying to use toLocaleString () javascript methods (for i.e. Date) but
> cannot find howto setup the locale.
> QLocale::setDefault (...) seems not to have any effect, only on linux the
> system locale itself seems to affect the result.
>
> Is this not supported or maybe a bug?
>
Before I start, don't take this is a definitive answer :-)
I think it's not supported. AFAICT, QLocale and QtScript's locale
stuff don't tie into each other in any way. Have you tried calling
setlocale() directly? I also see that Number.toLocaleString() appears
to be unimplemented in JSC (it has a FIXME...)
Girish
More information about the Qt-interest-old
mailing list