[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-09 Thread Dmitry Shachnev
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-09 Thread Launchpad Bug Tracker
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-09 Thread Bug Watch Updater
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-09 Thread Matthias Klose
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-09 Thread Launchpad Bug Tracker
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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
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:

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Launchpad Bug Tracker
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:

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
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

Re: [Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Sebastian Heinlein
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

Re: [Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Sebastian Heinlein
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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
@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':

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Ubuntu Foundation's Bug Bot
** 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)

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Bug Watch Updater
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Launchpad Bug Tracker
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:

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-08 Thread Michael Vogt
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'

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-07 Thread walterclozet
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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-06 Thread Julian Taylor
** 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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-06 Thread Launchpad Bug Tracker
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:

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-06 Thread northar
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

[Bug 1058038] Re: class 'UnicodeEncodeError': 'ascii' codec can't encode characters in position 18-25: ordinal not in range(128)

2012-10-06 Thread Nicolas Delvaux
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