Closed Bug 1221286 Opened 10 years ago Closed 10 years ago

file sizes formatted as NaN MB on Persian OS (also download and update progress)

Categories

(Core :: JavaScript: Internationalization API, defect)

44 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1201232
Tracking Status
firefox42 --- affected
firefox43 --- affected
firefox44 --- affected
firefox45 --- affected

People

(Reporter: amir_farsi, Unassigned)

References

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:44.0) Gecko/20100101 Firefox/44.0 Build ID: 20151103004217 Steps to reproduce: I'm using Firefox Developer Edition 44 64 Bit on Windows 10 64 bit. Please see the attached screenshot. Actual results: I opened about window from the common FF menu, and it shows Firefox is updating. But it shows NaN mb from NaN mb for size of reviving update! Expected results: NaN mb should be change to for example 45 mb.
Please be aware that my Firefox updated, but NaN MB was to the end of update.
Hi Amir, can you tell us please what is set as language and region in the system settings? Thank you.
Flags: needinfo?(amir_farsi)
Yes. My Preferred language in my system settings is Persian(fa) which is a RTL language.
Flags: needinfo?(amir_farsi)
But be aware, my Firefox language(Language of UI) is English, but preferred language in Options-->Contents-->Languages is Persian(Farsi)
[Tracking Requested - why for this release]: On Windows with the UI in Persian (fa-IR), all file sizes in the UI shows up as 'NaN': file size when asked where to store a file, in the download progress panel, in the About Firefox update dialog, likely more. Not to know how big a download is can be painful. I can't reproduce the issue with Xubuntu in Persian but on Windows 8.1. Running this script returns NaN if the Windows locale is Persian: var fractionDigits = 1; var locale = Intl.NumberFormat().resolvedOptions().locale + "-u-nu-latn"; var formatter = Intl.NumberFormat(locale, { maximumFractionDigits: fractionDigits, minimumFractionDigits: fractionDigits }); formatter.format(55.5) formatter.format.toString points to numberFormatFormatToBind https://dxr.mozilla.org/mozilla-central/rev/0c648a1efbe06b5ec866ba058d18256b80808b46/js/src/builtin/Intl.js#2007 So it might fail here: https://dxr.mozilla.org/mozilla-central/rev/0c648a1efbe06b5ec866ba058d18256b80808b46/js/src/builtin/Intl.cpp#1441
Component: Download Manager → JavaScript: Internationalization API
Product: Toolkit → Core
See Also: → 1212230
Summary: Firefox Dev Edition Shows NaN MB when updating → file sizes formatted as NaN MB on Persian OS (also download and update progress)
Attached image MozAddOnsNaN.jpg
This is screenshot of Firefox when downloading and installing an Add-On. It shows NaN in Addons download pop-up window. Also I have this problem in download window. This problem is in any where which Firefox wants to download a file.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
hi there I had the same problem by firefox on windows 8.1 with persian language this should be solved by changing reginal setting and change customize format of decimal symbol from "/" character to "." caharacter
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: