Python provides PyUnicode_EncodeLocale(), but that returns a new bytes object. We can get a char* from that, but we'd not be able to delete the bytes object anymore, as we don't know the life time of the char* and our function only returns a char*
-- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu. https://bugs.launchpad.net/bugs/1132918 Title: Ubiquity crashes with UnicodeDecodeError in apt_pkg.size_to_str Status in python-apt package in Ubuntu: Triaged Status in ubiquity package in Ubuntu: Fix Released Status in python-apt source package in Raring: Won't Fix Status in ubiquity source package in Raring: Fix Released Bug description: After Ubiquity finishes copying files, it creates the users on the system (Or a bit later), then crashes. I used Grub2 on my USB drive to boot the raring ISO via loopback. Installed with a custom partition layout (Reused old Home and formated Root). ProblemType: Bug DistroRelease: Ubuntu 13.04 Package: ubiquity 2.13.12 ProcVersionSignature: Ubuntu 3.8.0-7.15-generic 3.8.0 Uname: Linux 3.8.0-7-generic x86_64 ApportVersion: 2.8-0ubuntu4 Architecture: amd64 CasperVersion: 1.330 Date: Mon Feb 25 20:08:39 2013 LiveMediaBuild: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130225) MarkForUpload: True ProcEnviron: TERM=unknown PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: ubiquity UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1132918/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp