Bug 1262726
Summary: | [abrt] timeline: experimentalfeaturedateformatting.py:96:_get_field_positions:IndexError: list index out of range | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tong Hui <tonghuix> | ||||||
Component: | timeline | Assignee: | Gwyn Ciesla <gwync> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 22 | CC: | gwync, ricli85 | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Unspecified | ||||||||
URL: | https://retrace.fedoraproject.org/faf/reports/bthash/054cd06aaba382a46116173e82e1941102336657 | ||||||||
Whiteboard: | abrt_hash:d3f23d4cdc2f6b864e0ed5a4e19fc0acd795b298 | ||||||||
Fixed In Version: | timeline-1.5.1-1.fc22 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-12-17 08:52:49 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
Tong Hui
2015-09-14 08:12:03 UTC
Created attachment 1073123 [details]
File: backtrace
Created attachment 1073124 [details]
File: environ
I have confirmed that this bug is still present in the latest commit. Here is how to reproduce it: $ hg clean && LANG=zh_CN ./source/timeline.py -c non-existing.cfg :tutorial: ... omitted lines ... File "./source/timelinelib/features/experimental/experimentalfeaturedateformatting.py", line 98, in _get_field_positions return {keys[0]: 0, keys[1]: 1, keys[2]: 2} IndexError: list index out of range In other words, it looks like the Chinese locale/date format is not handled correctly. Print of df variable:
>>> x='3333\xe5\xb9\xb411\xe6\x9c\x8822\xe6\x97\xa5'
>>> print(x)
3333年11月22日
(In reply to Rickard Lindberg from comment #4) > Print of df variable: dt that is. timeline-1.5.1-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b16dfe795a I've fixed the problem in 1.5.1. The next upcoming release (1.9.0) will also contain the fix. timeline-1.5.1-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update timeline' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b16dfe795a timeline-1.5.1-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report. |