Special character "î" in AUTHORS makes "license" crash

Bug #1014355 reported by Benoît Legat
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Quickly
New
Undecided
Unassigned

Bug Description

When runing
$ quickly license
if there are special character like "î" in AUTHORS, it crashes

How to reproduce the bug:
Create a project
$ quickly create ubuntu-application foo
Edit the AUTHORS file and set the name to "Benoît"
$ quickly edit
Generate the license
$ quickly license

What is the output
Traceback (most recent call last):
  File "/usr/share/quickly/templates/ubuntu-application/license.py", line 314, in <module>
    licensing(license)
  File "/usr/share/quickly/templates/ubuntu-application/license.py", line 290, in licensing
    {'translatable': 'yes'})
  File "/usr/share/quickly/templates/ubuntu-application/internal/quicklyutils.py", line 166, in change_xml_elem
    new_node.text = value
  File "lxml.etree.pyx", line 904, in lxml.etree._Element.text.__set__ (src/lxml/lxml.etree.c:37110)
  File "apihelpers.pxi", line 721, in lxml.etree._setNodeText (src/lxml/lxml.etree.c:16855)
  File "apihelpers.pxi", line 1366, in lxml.etree._utf8 (src/lxml/lxml.etree.c:22060)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
ERROR: license command failed
Aborting

The version on python I use:
$ python --version
Python 2.7.3

The version of quickly I use:
$ quickly --version
Quickly 12.04
  Python interpreter: /usr/bin/python 2.7.3
  Python standard library: /usr/lib/python2.7

  Quickly used library: /usr/lib/python2.7/dist-packages/quickly
  Quickly data path: /usr/share/quickly
  Quickly detected template directories:
          /usr/share/quickly/templates/

Copyright 2009 Rick Spencer
Copyright 2009-2011 Didier Roche
Copyright 2010-2011 Canonical Ltd
https://launchpad.net/quickly

quickly comes with ABSOLUTELY NO WARRANTY. quickly is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 3 or later.

Revision history for this message
Benoît Legat (blegat) wrote :
Revision history for this message
Andres Muniz (andresmp) wrote :

Happens with é and ñ. I am using quickly version 11.10.

Revision history for this message
João Antonio Santana (joaosantana) wrote :

Same with "ã".

$ quickly --version
Quickly 12.04
  Python interpreter: /usr/bin/python 2.7.3
  Python standard library: /usr/lib/python2.7

  Quickly used library: /usr/lib/python2.7/dist-packages/quickly
  Quickly data path: /usr/share/quickly
  Quickly detected template directories:
          /usr/share/quickly/templates/

Revision history for this message
João Antonio Santana (joaosantana) wrote :

Seems it affects applications created with ubuntu-applications template. I've just created an ubuntu-cli template application and quickly license works as expected, although AUTHORS file have special characters.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.