Skip to content

Catch UnicodeEncodeError for Windows in tz.gettz#861

Merged
pganssle merged 2 commits intodateutil:masterfrom
pganssle:fix_gettz_windows_unicode
Feb 3, 2019
Merged

Catch UnicodeEncodeError for Windows in tz.gettz#861
pganssle merged 2 commits intodateutil:masterfrom
pganssle:fix_gettz_windows_unicode

Conversation

@pganssle
Copy link
Copy Markdown
Member

@pganssle pganssle commented Feb 3, 2019

On Windows and Python 2.7, calling tzwin with a non-ascii name will raise a UnicodeEncodeError instead of WindowsError, as it does on other platforms and versions.

Fixes GH #802.

Pull Request Checklist

  • Changes have tests
  • Authors have been added to AUTHORS.md
  • News fragment added in changelog.d. See CONTRIBUTING.md for details

pganssle added a commit to pganssle/dateutil that referenced this pull request Feb 3, 2019
@pganssle pganssle added this to the 2.8.0 milestone Feb 3, 2019
On Windows and Python 2.7, calling `tzwin` with a non-ascii name will
raise a UnicodeEncodeError instead of WindowsError, as it does on other
platforms and versions.

Fixes GH dateutil#802.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant