You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jskeate@vsemozhetbyt I committed a workaround patch in srl295@b53db21 if you add this file into node and rebuild, it should mitigate the problem. it only applies to ICU 62, in future versions this should be fixed.
node 10.11 still has this issue - the history is a little hard for me to read, other than that this issue is still marked Open. Can I please get a recap?
Chrome debugger 69.0.3497.100 (Official Build) (64-bit) gives the right answer - no idea if that's relevant. ICU's tracked issue looks to be marked resolved 3 days ago.
Activity
devsnek commentedon Aug 6, 2018
@nodejs/intl @nodejs/v8
vsemozhetbyt commentedon Aug 6, 2018
These are results with some relevant Node.js and V8 (Windows 7 x64, common Node.js builds with
small-icu):srl295 commentedon Aug 6, 2018
srl295 commentedon Aug 6, 2018
devsnek commentedon Aug 6, 2018
@srl295
srl295 commentedon Aug 6, 2018
so right now i'm concerned about this
and 3 kinda ≠ 6
vsemozhetbyt commentedon Aug 6, 2018
srl295 commentedon Aug 6, 2018
reading http://icu-project.org/apiref/icu4c/classicu_1_1DecimalFormat.html#sigdig
vsemozhetbyt commentedon Aug 6, 2018
srl295 commentedon Aug 6, 2018
There's an ICU bug. https://unicode-org.atlassian.net/browse/ICU-20063 // @sffc
srl295 commentedon Aug 6, 2018
v8 is broken too unless they've mitigated this.
here's a hackaround that
willshould work for any ICU version:srl295 commentedon Aug 6, 2018
v8 does NOT have a mitigation for this that I could see… https://github.com/v8/v8/blob/master/src/objects/intl-objects.cc#L294 … so v8 is broken, depending on the ICU version used.
but :( looks like v8 put a hack into its ICU version — here is the patch
it might be better to just put this same patch into node's ICU for this specific version.
workaround https://unicode-org.atlassian.net/browse/ICU-20063
srl295 commentedon Aug 7, 2018
@jskeate @vsemozhetbyt I committed a workaround patch in
srl295@b53db21 if you add this file into node and rebuild, it should mitigate the problem. it only applies to ICU 62, in future versions this should be fixed.
JasonKleban commentedon Sep 25, 2018
node 10.11 still has this issue - the history is a little hard for me to read, other than that this issue is still marked Open. Can I please get a recap?
node -e "console.log(new Intl.NumberFormat('en-US', { maximumSignificantDigits: 4 }).format(10.001))"expected:
10got10.001.Chrome debugger 69.0.3497.100 (Official Build) (64-bit) gives the right answer - no idea if that's relevant. ICU's tracked issue looks to be marked resolved 3 days ago.
srl295 commentedon Oct 19, 2018
@JasonKleban OK, sorry. Looks like I did not open a PR for master...srl295:patch-icu-62-sigdig … and also #23715 brings in 63.1 which fixes this. let me see what I can do.
deps: icu: apply workaround patch
deps: icu: apply workaround patch
deps: icu: apply workaround patch
deps: icu: apply workaround patch
deps: icu: apply workaround patch
deps: icu: apply workaround patch
deps: icu: apply workaround patch