Handle Unicode in config.status
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: gps, Assigned: glandium)
References
Details
Attachments
(4 files)
Comment 1•12 years ago
|
||
Assignee | ||
Comment 2•12 years ago
|
||
Updated•7 years ago
|
Comment 3•5 years ago
|
||
Didn't know this bug existed, but the problem is getting fixed as part of bug 1473498.
(In reply to Mike Hommey [:glandium] from comment #2)
I think we're likely to switch away from autoconf before we ever switch to
python 3, so maybe WONTFIX?
:)
Assignee | ||
Comment 4•5 years ago
|
||
Actually, this is not a dupe. This was filed before python configure, and was about config.status before it was python. Which it is not anymore.
Assignee | ||
Comment 5•5 years ago
|
||
Re-actually, there's a reference to this bug in configenvironment.py, so let's make this about killing the manual decoding in there.
Assignee | ||
Comment 6•5 years ago
|
||
The configure sandbox has wrapped subprocess methods to do it since
bug 1520394.
OTOH, and while we're here, none was actually using the right encoding
for this conversion, so fix the configure sandbox to use the right one,
and make it stop using encode(), which does deep recursion that is not
necessary here, and that I'm trying to remove entirely.
Also while here, remove unused import of encode().
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 7•5 years ago
|
||
With bug 1575135, we ensure nothing gets out of the configure sandbox
as a bytes string. We can thus now avoid the encode() pass in
configure.py. We still need, however, to normalize the configuration
so that it doesn't contain unexpected types, and conformning to what
indented_repr does to the configuration in config.status.
While here, convert some obj.iteritems() to six.iteritems(obj).
And remove the now unused encode function.
Assignee | ||
Comment 8•5 years ago
|
||
Now that the configuration comes in without bytes strings, there is no
need to convert it anymore.
Assignee | ||
Comment 9•5 years ago
|
||
Now that there is no bytes strings in it, we don't need to store
config.status in the system encoding to keep those valid. Moreover, the
system encoding is lossy, which utf-8 is not.
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f47e966507eb
https://hg.mozilla.org/mozilla-central/rev/5d316c7942ee
https://hg.mozilla.org/mozilla-central/rev/a07ecf63a897
https://hg.mozilla.org/mozilla-central/rev/8beaed1849e8
Description
•