← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1512072] [NEW] qtc_chroot_wrapper.py craches when build in non ASCII build dir

 

Public bug reported:

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.

** Affects: qtcreator-plugin-ubuntu (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1512072

Title:
  qtc_chroot_wrapper.py craches when build in non ASCII build dir

Status in qtcreator-plugin-ubuntu package in Ubuntu:
  New

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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1512072/+subscriptions


Follow ups