← Back to team overview

python-jenkins-developers team mailing list archive

[Bug 1713481] Re: crashes when uploading job with non-ascii chars on python2.7

 

@QuantumGhost Thanks! :D I'll delete my pseudo-fix. Do you have some
time to fix this in near future?

-- 
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1713481

Title:
  crashes when uploading job with non-ascii chars on python2.7

Status in Python Jenkins:
  In Progress

Bug description:
  If run on python 2.7.13, jenkins-python crashes if job xml contains
  non-ascii characters.

  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "jenkins/__init__.py", line 992, in create_job
      config_xml.encode('utf-8'), DEFAULT_HEADERS))
  UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 0: ordinal not in range(128)

  Reproduction:
  import jenkins
  a = jenkins.Jenkins('http://google.com')
  a.create_job('Test_job', 'unicode: š')

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1713481/+subscriptions


References