[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** No longer affects: dbus (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Branch linked: lp:~aptdaemon-developers/aptdaemon/ubuntu-quantal -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Changed in: python Status: New = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Changed in: python3.2 (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
This bug was fixed in the package aptdaemon - 0.45+bzr861-0ubuntu9 --- aptdaemon (0.45+bzr861-0ubuntu9) quantal; urgency=low * Workaround that ensures that for sys.getfilesystemencoding() utf8 is used when the daemon is dbus auto-activatied (LP: #1058038) -- Michael Vogt michael.v...@ubuntu.com Tue, 09 Oct 2012 14:27:36 +0200 ** Changed in: aptdaemon (Ubuntu) Status: Confirmed = Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
I can confirm this, when LANG/LANUAGE is unset and LC_CTYPE is set to posix/C the sys.getfilesystemencoding() call will return ascii. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
Looking at this a bit more it appears to be a bit of a can of worms. It appears that the dbus activation sytem is launching the daemon with a almost empty env: environ( {'DBUS_STARTER_BUS_TYPE': 'system', 'DBUS_STARTER_ADDRESS': 'unix:path=/var/run/dbus/system_bus_socket'}) which means that even the systemwide default language is not set. ** Also affects: dbus (Ubuntu) Importance: Undecided Status: New ** Also affects: python-defaults (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python3.2 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Package changed: python-defaults (Ubuntu) = python3.2 (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
AFAICT the default fsencoding is read only at python startup and can not be changed later. The dbus activation does run the aptd without a env (well, just a minimal one). cjwatson Or else there needs to be a way to break the caching when we change Python's locale at run-time cjwatson That might be a good idea anyway mvo cjwatson: yeah, that would be the cleanest I think, ensuring this is reset on setlocale() pitti yeah, a locale.setlocale() call ought to change the fs encoding, toovalid env Allowing to change the encoding later is probably the best option. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
pitti just saying that if all else fails, hardcoding utf-8 shoudl avoid 99% of the problems with a really trivial/safe patch? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
We should unset those variables in the test suite or even use dbus activation for the daemon testing. But makes cleaning up in the tests a little bit tricky. Someting to target for R. -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
Re: [Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
We could also set lang to C.UTF8 in aptdaemon only. Michael Vogt michael.v...@ubuntu.com schrieb: pitti just saying that if all else fails, hardcoding utf-8 shoudl avoid 99% of the problems with a really trivial/safe patch? -- You received this bug notification because you are a member of Aptdaemon Developers, which is subscribed to aptdaemon in Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
@Sebastian: we would have to use a shell wrapper or fork/exit as the env is read on interpreter statup. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Patch added: Proof of concept that allows chaning the Py_FileSystemDefaultEncoding https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+attachment/3385784/+files/alllow-chaning-of-Py_FileSystemDefaultEncoding.diff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Bug watch added: Python Roundup #16162 http://bugs.python.org/issue16162 ** Also affects: python via http://bugs.python.org/issue16162 Importance: Unknown Status: Unknown ** Changed in: dbus (Ubuntu) Status: New = Invalid ** Branch linked: lp:~mvo/aptdaemon/lp1058038 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Changed in: python Status: Unknown = New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python3.2 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
The attached branch works around the problem by setting up a basic LANG env and doing a a os.execv() -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/python/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
trying to install chrome amd64 for ubuntu, download from official site. crushes every time when double click to install. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
** Visibility changed to: Public -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: aptdaemon (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
Trying to install something from /home/myuser/Hämt/fs-uae_1.3.29-0_amd64.deb gives this bug with lates quantal updates (x64) When skipping folder /Hämt/ in the path it works.Uniode prob? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)
This is indeed a unicode problem. The strange thing is that it works when killing and launching aptd from the command line. According to http://docs.python.org/py3k/howto/unicode.html#unicode-filenames , this is because the LANG environment variable is not set when aptd is spawned by the sotware-center. In this case, the default encoding for pathes is ASCII. I hacked arround and was able to confirm this (by writing os.environ in a file). So here is the bug. Though, I'm not sure about the best way to fix it. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1058038 Title: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/1058038/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs