UnicodeDecodeError in askYesNoQuestion of DistUpgradeViewText.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Quantal |
Fix Released
|
High
|
Unassigned |
Bug Description
[Impact]
People use languages where yes / no characters are unicode will not be able to upgrade in their language to Quantal.
[Test Case]
0) In /etc/update-
1) On a precise system install Russian language
2) In a terminal run:
LANG=ru_RU.UTF-8 do-release-upgrade
3) When prompted with:
Продолжить [дН]
4) Respond with either character
With the original version of ubuntu-
do-release-upgrade -p
Original report:
In bug 1068389 a user thought they were experiencing the same bug as that one but it was in fact different. Their comment follows:
I jist run "do-release-
Чтение временных файлов
Проверка менеджера пакетов
Продолжить работу через SSH?
Этот сеанс запущен через ssh. Не рекомендуется выполнять обновление
через ssh, так как в случае неудачи восстановление будет очень
сложным.
Если вы продолжите, дополнительная служба ssh будет запущена на порту
«1022».
Хотите ли вы продолжить?
Продолжить [дН]
and after that I enter letter "д" and it give me error:
Произошла критическая ошибка
Пожалуйста, сообщите об этой ошибке и включите файлы
/var/log/
отчёт. Обновление было отменено.
Ваш оригинальный файл sources.list был сохранён в
/etc/apt/
Traceback (most recent call last):
File "/tmp/update-
sys.exit(main())
File "/tmp/update-
line 240, in main
if app.run():
File
"/tmp/update-
line 1764, in run
return self.fullUpgrade()
File
"/tmp/update-
line 1616, in fullUpgrade
if not self.prepare():
File
"/tmp/update-
line 429, in prepare
self._sshMagic()
File
"/tmp/update-
line 299, in _sshMagic
"Do you want to continue?") % port)
File "/tmp/update-
line 210, in askYesNoQuestion
if res.strip(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position
0: ordinal not in range(128)
The same thing would likely happen if the responded No.
Related branches
- Barry Warsaw: Pending requested
-
Diff: 147 lines (+37/-10)3 files modifiedDistUpgrade/DistUpgradeView.py (+9/-2)
DistUpgrade/DistUpgradeViewText.py (+16/-8)
tests/test_view.py (+12/-0)
description: | updated |
description: | updated |
The traceback from their main.log file is a bit easier to read:
Traceback (most recent call last):
File "/tmp/update- manager- tp0AlE/ quantal" , line 10, in <module> exit(main( ))
sys.
File "/tmp/update- manager- tp0AlE/ DistUpgrade/ DistUpgradeMain .py", line 240, in main
if app.run():
File "/tmp/update- manager- tp0AlE/ DistUpgrade/ DistUpgradeCont roller. py", line 1764, in run
return self.fullUpgrade()
File "/tmp/update- manager- tp0AlE/ DistUpgrade/ DistUpgradeCont roller. py", line 1616, in fullUpgrade
if not self.prepare():
File "/tmp/update- manager- tp0AlE/ DistUpgrade/ DistUpgradeCont roller. py", line 429, in prepare _sshMagic( )
self.
File "/tmp/update- manager- tp0AlE/ DistUpgrade/ DistUpgradeCont roller. py", line 299, in _sshMagic
"Do you want to continue?") % port)
File "/tmp/update- manager- tp0AlE/ DistUpgrade/ DistUpgradeView Text.py" , line 210, in askYesNoQuestion ).lower( ).startswith( _("y")) :
if res.strip(
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128)