Closed
Bug 558394
Opened 15 years ago
Closed 15 years ago
Thousands separators display as apostrophes in the page info window
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
VERIFIED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta1+ |
People
(Reporter: u88484, Assigned: jimb)
References
()
Details
(Keywords: regression, Whiteboard: fixed-in-tracemonkey)
Attachments
(3 files, 1 obsolete file)
Commas are displayed as apostrophes in the page info window. See the screenshot for a comparison of Firefox 3.6.3 and the latest trunk.
I see this as well. Have no idea when it regressed.
Is it all commas, or just for the thousands separators? (Would an alt-text that includes a comma show up as an apostrophe? I don't have time to check that at the moment.)
Comment 3•15 years ago
|
||
Note that this should obey the locale. I expect to see apostrophes in that case as my locale is defined so (and is its default).
Comment 4•15 years ago
|
||
Commas in alt-text are fine. It seems to affect only the thousands separators, as far as I can tell.
Comment 5•15 years ago
|
||
This affects SeaMonkey trunk as well so something in number.toLocaleString()changed.
Assignee: nobody → general
Component: Page Info → JavaScript Engine
Product: Firefox → Core
QA Contact: page.info → general
Comment 6•15 years ago
|
||
My guess would be a regression around here: http://mxr.mozilla.org/mozilla-central/source/js/src/jsnum.cpp#424
This is a simple testcase for it: javascript:var test = 1000000;document.write(test.toLocaleString());
Comment 7•15 years ago
|
||
Here is an attached version of the testcase in html.
Updated•15 years ago
|
OS: Windows 7 → Windows Vista
I think the problem is using ifndef HAVE_LOCALECONV when it should be ifdef.
Assignee: general → mwu
Blocks: 542146
Basing that on https://bugzilla.mozilla.org/show_bug.cgi?id=542146#c6, I haven't actually tested this or anything.
Comment 10•15 years ago
|
||
I am quickly running a build to test Kyle's theory.
Updated•15 years ago
|
blocking2.0: --- → ?
bz points out that the issue is not ifndef, but rather HAVE_LOCALECONV. It needs to be defined on all non-Android platforms.
So the issue appears to be that AC_HAVE_FUNC(localeconv) does not find localeconv on Windows (other platforms too, maybe?) even though it's definitely in locale.h ...
Comment 14•15 years ago
|
||
I won't be able to investigate the autoconf brokenness on windows until later this week, so here's a patch to special case localeconv for the only current user of this ifdef.
Attachment #438421 -
Flags: review?(jorendorff)
Assignee | ||
Comment 15•15 years ago
|
||
I don't think a patch like that should ever land; the people who are inconvenienced by it should apply it locally for a few days.
Assignee | ||
Comment 16•15 years ago
|
||
Attachment #438542 -
Flags: review?(jorendorff)
Assignee | ||
Comment 17•15 years ago
|
||
That would be the fix I'd recommend.
Updated•15 years ago
|
Attachment #438421 -
Flags: review?(jorendorff)
Comment 18•15 years ago
|
||
Comment on attachment 438542 [details] [diff] [review]
Define HAVE_LOCALECONV on Windows.
Well, that seems marginally better-- but why do we SKIP_COMPILER_CHECKS and SKIP_LIBRARY_CHECKS on Windows? Isn't that kind of bad?
(Also unrelated to the specific bug at hand, it seems a little odd what we're doing with HAVE_SYSTEMTIMETOFILETIME in the context there.)
Attachment #438542 -
Flags: review?(jorendorff) → review+
Updated•15 years ago
|
Attachment #438421 -
Attachment is obsolete: true
Assignee | ||
Comment 20•15 years ago
|
||
Autoconf can't run the VS compiler correctly, so we don't do any dynamic detection on Windows. Is my understanding.
At one point I thought I had a hack that would make it work; bsmedberg's reaction was a mildly surprised "that would be nice". But I never pursued it.
Summary: Commas display as apostrophes in the page info window → Thousands separators display as apostrophes in the page info window
Assignee | ||
Updated•15 years ago
|
Status: NEW → ASSIGNED
Whiteboard: fixed-in-tracemonkey
Updated•15 years ago
|
blocking2.0: ? → beta1+
Comment 21•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 22•15 years ago
|
||
Verified fixed using Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.3a5pre) Gecko/20100424 Minefield/3.7a5pre
Status: RESOLVED → VERIFIED
Comment 23•15 years ago
|
||
(In reply to comment #18)
> (From update of attachment 438542 [details] [diff] [review])
> Well, that seems marginally better-- but why do we SKIP_COMPILER_CHECKS and
> SKIP_LIBRARY_CHECKS on Windows? Isn't that kind of bad?
It's a pain, but it's not really bad, since there aren't that many variants of VC++ floating around. It's not generally that hard to hardcode the right answers for VC++ in configure.
(Also even if we could get them working, configure tests are *much* slower on Windows with msys, so it'd make our already-slow configure run even worse there.)
You need to log in
before you can comment on or make changes to this bug.
Description
•