Merge lp:~fourdollars/ubiquity/trunk into lp:ubiquity

Proposed by Shih-Yuan Lee
Status: Merged
Merged at revision: 6573
Proposed branch: lp:~fourdollars/ubiquity/trunk
Merge into: lp:ubiquity
Diff against target: 23 lines (+5/-1)
1 file modified
scripts/plugininstall.py (+5/-1)
To merge this branch: bzr merge lp:~fourdollars/ubiquity/trunk
Reviewer Review Type Date Requested Status
Mathieu Trudel-Lapierre Approve
Yuan-Chen Cheng (community) Needs Resubmitting
Review via email: mp+329582@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks reasonable, but are you certain this is the right place for that particular fix? Have you tested this?

There are multiple other calls to Debconf() elsewhere, some others may be affected the same way, or be required to properly fix the issue you're seeing.

In general, I think this is a good idea, and should probably be applied everywhere, but I want to make sure it doesn't break things, so I'd land this on its own.

review: Needs Information
Revision history for this message
Shih-Yuan Lee (fourdollars) wrote :

I have used this on Ubuntu OEM project for Dell and it does fix the problem.
I don't see any possibility that it may break any Debconf call because Deconf uses UTF-8 by default.

Revision history for this message
Yuan-Chen Cheng (ycheng-twn) wrote :

change the status to re-submit for Shih-Yuan.

review: Needs Resubmitting
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scripts/plugininstall.py'
2--- scripts/plugininstall.py 2017-07-18 15:21:41 +0000
3+++ scripts/plugininstall.py 2017-08-25 08:59:39 +0000
4@@ -22,6 +22,7 @@
5 from __future__ import print_function
6
7 import gzip
8+import io
9 import os
10 import platform
11 import pwd
12@@ -87,7 +88,10 @@
13 def __init__(self):
14 install_misc.InstallBase.__init__(self)
15
16- self.db = debconf.Debconf()
17+ self.db = debconf.Debconf(
18+ read=io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8'),
19+ write=io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8'))
20+
21 self.kernel_version = platform.release()
22
23 # Get langpacks from install

Subscribers

People subscribed via source and target branches

to status/vote changes: