Activity log for bug #1473533

Date Who What changed Old value New value Message
2015-07-10 18:31:44 Martin Jansa bug added bug
2015-07-10 18:45:17 Martin Jansa attachment added fix.for.tzdata-2015e.patch https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4427573/+files/fix.for.tzdata-2015e.patch
2015-09-17 08:47:34 Andrew Bird bug watch added http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792192
2015-09-17 09:37:40 Andrew Bird bug added subscriber Andrew Bird
2015-09-17 09:40:52 Andrew Bird pytz: status New Confirmed
2015-09-21 13:30:13 Stuart Bishop pytz: status Confirmed In Progress
2015-09-21 13:30:16 Stuart Bishop pytz: assignee Stuart Bishop (stub)
2015-09-21 13:46:50 Stuart Bishop pytz: status In Progress Fix Released
2015-09-21 13:48:08 Stuart Bishop bug task added python-tz (Debian)
2015-09-21 13:48:54 Stuart Bishop bug task added python-tz (Ubuntu)
2015-09-21 16:17:49 Ubuntu Foundations Team Bug Bot tags patch
2015-09-21 16:17:55 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2015-09-22 13:18:18 Bug Watch Updater python-tz (Debian): status Unknown New
2015-09-24 08:27:13 Sebastien Bacher bug added subscriber Ubuntu Sponsors Team
2015-09-24 09:16:33 Launchpad Janitor branch linked lp:pytz
2015-09-29 13:07:06 Sebastien Bacher python-tz (Ubuntu): importance Undecided High
2015-09-29 13:07:08 Sebastien Bacher python-tz (Ubuntu): status New Fix Committed
2015-09-29 14:38:17 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/wily/python-tz/wily-proposed
2015-09-29 20:36:42 Launchpad Janitor python-tz (Ubuntu): status Fix Committed Fix Released
2015-10-01 15:07:22 Robert C Jennings nominated for series Ubuntu Trusty
2015-10-01 15:07:22 Robert C Jennings nominated for series Ubuntu Vivid
2015-10-01 15:07:22 Robert C Jennings nominated for series Ubuntu Precise
2015-10-01 15:11:08 Colin Watson bug task added python-tz (Ubuntu Precise)
2015-10-01 15:11:16 Colin Watson bug task added python-tz (Ubuntu Trusty)
2015-10-01 15:11:27 Colin Watson bug task added python-tz (Ubuntu Vivid)
2015-10-02 02:24:43 Robert C Jennings description Since tzdata-2015e there are UTF-8 characters in iso3166.tab, see: http://mm.icann.org/pipermail/tz/2015-May/022258.html http://mm.icann.org/pipermail/tz/2015-June/022306.html pytz/__init__.py:_CountryNameDict(LazyDict) is using: zone_tab = open_resource('iso3166.tab') try: for line in zone_tab.readlines(): line = line.decode('US-ASCII') to read it and fails on AX, CI, RE lines, using UTF-8 fixes the issues and should work OK even with older tzdata releases. [Impact] * The latest tzdata update change the content type for iso3166.tab and zone.tab to UTF-8 which causes an exception in pytz [Test Case] $ apt-get install -y python-tz python3-tz # These should produce exceptions for country_names. This test # case also includes a test for country_timezones because the # tzdata file for zones has changed to use utf-8 but has yet # to include utf-8 characters. You can hand edit # /usr/share/zoneinfo/zone.tab to include a UTF-8 character # to force the exception and then test the proposed package. $ python -c 'import pytz for item in pytz.country_names.items(): pass' $ python -c 'import pytz for item in pytz.country_timezones.items(): pass' $ python3 -c 'from pytz import country_timezones for item in country_timezones.items(): pass' $ python3 -c 'from pytz import country_names for item in country_names.items(): pass' # A recreate will raise an exception like this: Traceback (most recent call last): File "<string>", line 2, in <module> File "/usr/lib/python3.4/_collections_abc.py", line 497, in __iter__ for key in self._mapping: File "/usr/lib/python3/dist-packages/pytz/lazy.py", line 41, in __iter__ self._fill() File "/usr/lib/python3/dist-packages/pytz/__init__.py", line 350, in _fill line = line.decode('US-ASCII') UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal not in range(128) [Regression Potential] * Older tzdata releases should be okay (and this has been tested) [Other Info] * None ---- Original Description ---- Since tzdata-2015e there are UTF-8 characters in iso3166.tab, see: http://mm.icann.org/pipermail/tz/2015-May/022258.html http://mm.icann.org/pipermail/tz/2015-June/022306.html pytz/__init__.py:_CountryNameDict(LazyDict) is using:         zone_tab = open_resource('iso3166.tab')         try:             for line in zone_tab.readlines():                 line = line.decode('US-ASCII') to read it and fails on AX, CI, RE lines, using UTF-8 fixes the issues and should work OK even with older tzdata releases.
2015-10-02 02:27:38 Robert C Jennings attachment added precise debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481458/+files/precise.debdiff
2015-10-02 02:27:56 Robert C Jennings attachment added trusty debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481459/+files/trusty.debdiff
2015-10-02 02:28:13 Robert C Jennings attachment added vivid debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481460/+files/vivid.debdiff
2015-10-02 02:28:21 Robert C Jennings python-tz (Ubuntu Precise): assignee Robert C Jennings (rcj)
2015-10-02 02:28:24 Robert C Jennings python-tz (Ubuntu Trusty): assignee Robert C Jennings (rcj)
2015-10-02 02:28:26 Robert C Jennings python-tz (Ubuntu Vivid): assignee Robert C Jennings (rcj)
2015-10-02 02:31:20 Robert C Jennings python-tz (Ubuntu Precise): status New In Progress
2015-10-02 02:31:22 Robert C Jennings python-tz (Ubuntu Trusty): status New In Progress
2015-10-02 02:31:26 Robert C Jennings python-tz (Ubuntu Vivid): status New In Progress
2015-10-02 02:33:51 Robert C Jennings python-tz (Ubuntu Precise): importance Undecided High
2015-10-02 02:33:52 Robert C Jennings python-tz (Ubuntu Trusty): importance Undecided High
2015-10-02 02:33:56 Robert C Jennings python-tz (Ubuntu Vivid): importance Undecided Critical
2015-10-02 02:33:59 Robert C Jennings python-tz (Ubuntu Trusty): importance High Critical
2015-10-02 02:34:07 Robert C Jennings python-tz (Ubuntu Precise): importance High Critical
2015-10-02 02:54:38 Robert C Jennings attachment removed precise debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481458/+files/precise.debdiff
2015-10-02 02:54:40 Robert C Jennings attachment removed trusty debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481459/+files/trusty.debdiff
2015-10-02 02:54:41 Robert C Jennings attachment removed vivid debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481460/+files/vivid.debdiff
2015-10-02 02:55:26 Robert C Jennings attachment added precise debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481526/+files/precise.debdiff
2015-10-02 02:55:32 Robert C Jennings attachment added trusty debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481527/+files/trusty.debdiff
2015-10-02 02:55:37 Robert C Jennings attachment added vivid debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481528/+files/vivid.debdiff
2015-10-02 10:22:27 Robert C Jennings attachment removed precise debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481526/+files/precise.debdiff
2015-10-02 10:22:49 Robert C Jennings attachment added precise debdiff https://bugs.launchpad.net/pytz/+bug/1473533/+attachment/4481823/+files/precise.debdiff
2015-10-02 16:04:56 Steve Langasek removed subscriber Ubuntu Sponsors Team
2015-10-02 16:05:06 Steve Langasek python-tz (Ubuntu Trusty): status In Progress Fix Committed
2015-10-02 16:05:09 Steve Langasek bug added subscriber Ubuntu Stable Release Updates Team
2015-10-02 16:05:15 Steve Langasek bug added subscriber SRU Verification
2015-10-02 16:05:25 Steve Langasek tags patch patch verification-needed
2015-10-02 16:10:31 Steve Langasek python-tz (Ubuntu Precise): status In Progress Fix Committed
2015-10-02 16:25:41 Steve Langasek python-tz (Ubuntu Vivid): status In Progress Fix Committed
2015-10-02 16:40:56 Launchpad Janitor branch linked lp:ubuntu/vivid-proposed/python-tz
2015-10-02 16:41:00 Launchpad Janitor branch linked lp:ubuntu/precise-proposed/python-tz
2015-10-02 16:41:10 Launchpad Janitor branch linked lp:ubuntu/trusty-proposed/python-tz
2015-10-02 17:13:05 Robert C Jennings tags patch verification-needed patch verification-done-precise verification-done-trusty verification-done-vivid
2015-10-02 17:13:56 Robert C Jennings tags patch verification-done-precise verification-done-trusty verification-done-vivid patch verification-done verification-done-precise verification-done-trusty verification-done-vivid
2015-10-02 18:36:00 Graham Inggs bug added subscriber Graham Inggs
2015-10-09 16:12:43 Launchpad Janitor python-tz (Ubuntu Vivid): status Fix Committed Fix Released
2015-10-09 16:12:46 Chris J Arges removed subscriber Ubuntu Stable Release Updates Team
2015-10-09 16:13:03 Launchpad Janitor python-tz (Ubuntu Trusty): status Fix Committed Fix Released
2015-10-09 16:13:22 Launchpad Janitor python-tz (Ubuntu Precise): status Fix Committed Fix Released
2016-02-20 22:29:52 Bug Watch Updater python-tz (Debian): status New Fix Released