js::PrintError should probably print its data as UTF-8
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
People
(Reporter: Waldo, Assigned: ptomato)
References
Details
Attachments
(1 file)
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Updated•6 years ago
|
![]() |
||
Updated•6 years ago
|
![]() |
||
Comment 3•6 years ago
|
||
[Tracking Requested - why for this release]:
Release Note Request (optional, but appreciated)
[Why is this notable]:
[Affects Firefox for Android]:
[Suggested wording]:
[Links (documentation, blog post, etc)]:
Comment 4•6 years ago
|
||
Tracking and relnote flag nominations require a comment. Resetting.
Updated•6 years ago
|
Assignee | ||
Comment 5•5 years ago
|
||
We could just change this to print out UTF-8, but sadly at the moment js::PrintError doesn't print all data in wholly consistent encoding -- earlier in the line a file name is printed out, and at present file names are not consistently encoded as UTF-8.
So, this probably requires multiple steps of work beyond just changing the aforementioned loop to print UTF-16 code points, not truncated code units.
Given that the file name stuff is probably fixed by bug 1492090, which has patches waiting for review already, would it be reasonable to just fix the loop here?
Assignee | ||
Comment 6•5 years ago
|
||
This would be nicer if we changed the loop that prints tokenOffset()
number of '.' characters, to take into account the visual column width
of the code points that it's supposed to line up with. But I don't see
any readily available function for that.
Depends on D73519
Updated•5 years ago
|
Comment 8•5 years ago
|
||
Backed out for bustages on for bustages on testPrintError.cpp
Backout link: https://hg.mozilla.org/integration/autoland/rev/ea102a49618733aae60628d0f4304e8708274016
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=302143544&repo=autoland&lineNumber=7304
Assignee | ||
Comment 9•5 years ago
•
|
||
I've updated the patches from this bug and bug 1506323 to fix the build failures. Here's a retry of the jobs that failed: https://treeherder.mozilla.org/#/jobs?repo=try&revision=880f1222a163c8cbd31c1ebf88a25603755990b4
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•