Bug 876293
Summary: | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 56: ordinal not in range(128) | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Steve Tyler <stephent98> | ||||||||||||||||||||||||||||||||||||
Component: | pykickstart | Assignee: | Vratislav Podzimek <vpodzime> | ||||||||||||||||||||||||||||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||||||||||||||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||||||||||||||||||||||||||||
Priority: | unspecified | ||||||||||||||||||||||||||||||||||||||
Version: | 18 | CC: | anaconda-maint-list, bcl, clumens, g.kaviyarasu, jonathan, sbueno, stephent98, vanmeeuwen+fedora, vpodzime | ||||||||||||||||||||||||||||||||||||
Target Milestone: | --- | ||||||||||||||||||||||||||||||||||||||
Target Release: | --- | ||||||||||||||||||||||||||||||||||||||
Hardware: | x86_64 | ||||||||||||||||||||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||||||||||||||||||||
Whiteboard: | abrt_hash:15cf01368343ae149bb9964133a35f6d8fd2dd50bc3212a01c284e23fa2447aa | ||||||||||||||||||||||||||||||||||||||
Fixed In Version: | 1.99.23-1 | Doc Type: | Bug Fix | ||||||||||||||||||||||||||||||||||||
Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||||||||||||
Clone Of: | Environment: | ||||||||||||||||||||||||||||||||||||||
Last Closed: | 2013-04-10 14:37:48 UTC | Type: | --- | ||||||||||||||||||||||||||||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||||||||||||
Documentation: | --- | CRM: | |||||||||||||||||||||||||||||||||||||
Verified Versions: | Category: | --- | |||||||||||||||||||||||||||||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||||||||||||
Embargoed: | |||||||||||||||||||||||||||||||||||||||
Attachments: |
|
Description
Steve Tyler
2012-11-13 18:36:23 UTC
Created attachment 644304 [details]
File: anaconda-tb
Created attachment 644305 [details]
File: environ
Created attachment 644306 [details]
File: type
Created attachment 644307 [details]
File: ifcfg.log
Created attachment 644308 [details]
File: storage.log
Created attachment 644309 [details]
File: version
Created attachment 644310 [details]
File: program.log
Created attachment 644311 [details]
File: executable
Created attachment 644312 [details]
File: product
Created attachment 644313 [details]
File: anaconda.log
Created attachment 644315 [details]
File: hashmarkername
Created attachment 644316 [details]
File: packaging.log
Created attachment 644317 [details]
File: cmdline_file
Created attachment 644318 [details]
File: release
Created attachment 644319 [details]
File: messages
Created attachment 644320 [details]
File: other involved packages
Attempt to reproduce Bug 876293. Package: anaconda-18.29-1.fc18.x86_64 OS Release: Fedora release 18 Created attachment 644677 [details] screenshot showing NTP configuration dialog after adding '中文 (台湾)' as a server name Here is a detailed reproducer: Choose 'Chinese (Taiwan)' for the install language. Click Date & Time. Click gear icon to configure NTP. Enter '中文 (台湾)' in the text box.[1] Click '+' to add. Uncheck the ntp.org entries. (See attached screenshot.) Click 'O' to save. Click Done. Configure disk: Delete all preexisting partitions. Auto-create partitions and filesystems. Click Begin Installation. Set root password. Exception occurs while running post install scripts. (The installer may appear to hang.) [1] The Chinese characters are copied from: >>> import babel >>> print babel.Locale.parse('zh_TW').display_name 中文 (台湾) This can also be reproduced by installing in English and entering '中文 (台湾)' as an NTP server. See also Bug 865869 re input validation. I couldn't find an actual NTP server with non-ASCII characters in its name, so I made one up that is a reproducer: :-) españa.ntp.org Stratum One Time Servers http://support.ntp.org/bin/view/Servers/StratumOneTimeServers Stratum Two Time Servers http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers This is not only an issue of NTP servers and should be resolved in a general way. (In reply to comment #22) > This is not only an issue of NTP servers and should be resolved in a general > way. This is a problem in pykickstart itself. I've changed the component and sent a patch to anaconda-patches. [pykickstart] [PATCH] Beware of possibly unicode strings (#876293) https://lists.fedorahosted.org/pipermail/anaconda-patches/2012-November/002272.html Thanks. This is basically a type-conversion problem. Isn't there a way to get Python to do the type conversion automatically, so we don't have to keep finding and fixing bugs like this? (In reply to comment #24) > [pykickstart] [PATCH] Beware of possibly unicode strings (#876293) > https://lists.fedorahosted.org/pipermail/anaconda-patches/2012-November/ > 002272.html > > Thanks. > > This is basically a type-conversion problem. Isn't there a way to get Python > to do the type conversion automatically, so we don't have to keep finding > and fixing bugs like this? I don't know about any such way. Python3 helps with that [1], but in Python 2.X one has to do the conversions and use unicode strings or utf8-encoded byte strings consistently. This is a bit difficult when Anaconda uses so many different tools returning us strings. Thus I'm afraid we are just going to keep fixing bugs like this, at least until we switch to Python3. |