Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode fix #481

Merged
merged 2 commits into from
Jun 2, 2019
Merged

Unicode fix #481

merged 2 commits into from
Jun 2, 2019

Conversation

berger-stx
Copy link
Contributor

This fixes a bug where a unicode error causes package installation to fail. Only occurs in systems with 'improperly' configured locales.

Bug was observed in a system with LANG=C and LC_ALL undefined.

Bug does not occur in another system with LANG=en_US.UTF-8 and LC_ALL=en_US.UTF-8.

Successfully tested in 3.7.2 and 2.7.16

@coveralls
Copy link

Coverage Status

Coverage remained the same at 84.04% when pulling d8feae2 on rueberger:unicode_fix into 718b798 on IDSIA:master.

@rueberger
Copy link
Contributor

(oops... berger-stx is me)

@JarnoRFB
Copy link
Collaborator

Thanks for the fix! Does this really need codecs or would open(..., encoding="utf-8") also work?

@rueberger
Copy link
Contributor

IIRC in python 3 the built-in open calls/shares the same interface as codecs.open, but in python 2 you must explicitly call codecs.open.

@JarnoRFB
Copy link
Collaborator

JarnoRFB commented Jun 2, 2019

Oh dear, we really need to get rid of Python 2. Merging then.

@JarnoRFB JarnoRFB merged commit 778df45 into IDSIA:master Jun 2, 2019
@rueberger rueberger deleted the unicode_fix branch June 20, 2019 14:30
rueberger added a commit to rueberger/sacred that referenced this pull request Jun 20, 2019
* 'master' of https://github.com/IDSIA/sacred:
  Release 0.7.5
  update dependencies to safer version of SQLAlchemy
  fixed numpy deprecation warning
  fix yaml deprecation warning
  Make config read only (IDSIA#472)
  Remove broken codacy badge (IDSIA#486)
  Add queue based observer (IDSIA#471)
  Run CI against python 36 and 37 (IDSIA#485)
  Make failed mongo observer dump configurable (IDSIA#462)
  Make stale time longer (IDSIA#484)
  Fix a bug where a unicode char in README.rst would fail install (IDSIA#481)
rueberger pushed a commit to rueberger/sacred that referenced this pull request Jun 21, 2019
…d into run_kwargs_fix

* 'run_kwargs_fix' of github.com-rueberger:rueberger/sacred:
  Release 0.7.5
  update dependencies to safer version of SQLAlchemy
  fixed numpy deprecation warning
  fix yaml deprecation warning
  Make config read only (IDSIA#472)
  Remove broken codacy badge (IDSIA#486)
  Add queue based observer (IDSIA#471)
  Run CI against python 36 and 37 (IDSIA#485)
  Make failed mongo observer dump configurable (IDSIA#462)
  Make stale time longer (IDSIA#484)
  Fix a bug where a unicode char in README.rst would fail install (IDSIA#481)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants