qtc_chroot_wrapper.py craches when build in non ASCII build dir

Bug #1512072 reported by Sam Segers
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qtcreator-plugin-ubuntu (Ubuntu)
Fix Released
High
Unassigned

Bug Description

When the local is set to french, qtcreator sets the build dir to <project-name>-UbuntuSDK_for_armhf_GCC_ubuntu_sdk_15_04_vivid-Défaut/
This causes a crash:

...
Install the project...
-- Install configuration: ""
Traceback (most recent call last):
  File "/home/sam/.config/QtProject/qtcreator/ubuntu-sdk/ubuntu-sdk-15.04-armhf/make", line 179, in <module>
    sys.stdout.write(mapPaths(stdout))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 108: ordinal not in range(128)
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 139, in apport_excepthook
    pr.write(f)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 379, in write
    v = v.encode('UTF-8')
UnicodeEncodeError: 'utf-8' codec can't encode character '\udcc3' in position 93: surrogates not allowed

Original exception was:
Traceback (most recent call last):
  File "/home/sam/.config/QtProject/qtcreator/ubuntu-sdk/ubuntu-sdk-15.04-armhf/make", line 179, in <module>
    sys.stdout.write(mapPaths(stdout))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 108: ordinal not in range(128)
10:37:13: The process "/home/sam/.config/QtProject/qtcreator/ubuntu-sdk/ubuntu-sdk-15.04-armhf/make" exited with code 1.
Erreur lors de la compilation/déploiement du projet places (kit : UbuntuSDK for armhf (GCC ubuntu-sdk-15.04-vivid))
When executing step "UbuntuSDK Click build"

This is caused by the é in Défault.

Related branches

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: New → In Progress
importance: Undecided → High
Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator-plugin-ubuntu - 3.5.0+16.04.20151126-0ubuntu1

---------------
qtcreator-plugin-ubuntu (3.5.0+16.04.20151126-0ubuntu1) xenial; urgency=medium

  [ Benjamin Zeller ]
  * Fix Bug lp:1494566 "Tools/Ubuntu/Showcase gallery is not working
    after updating my SDK" Fix Bug lp:1499135 "Cannot deploy a scope
    onto phone due to reserved policy group 'debug'" Fix Bug lp:1512072
    "qtc_chroot_wrapper.py craches when build in non ASCII build dir"
    Fix Bug lp:1519385: Latest framework is not presented as the default
    (workaround) Move image files into our own plugin so we do not clash
    with the scaling image provider of UITK (LP: #1512072, #1519385,
    #1494566, #1499135)
  * Migrate plugin to UITK 1.3

  [ Zoltán Balogh ]
  * Change exec line in desktop files. Fixes LP: #1495062 (LP: #1495062)
  * Correct the READMe instruction of the webapp template. Fixes LP:
    #1517196 (LP: #1517196)
  * Migrate the templates to 1.3 UITK

 -- Zoltan Balogh <email address hidden> Thu, 26 Nov 2015 05:24:55 +0000

Changed in qtcreator-plugin-ubuntu (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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