Author vstinner
Recipients Sworddragon, a.badger, bkabrda, larry, lemburg, loewis, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, terry.reedy, vstinner
Date 2013-12-13.15:57:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386950222.98.0.826895030956.issue19846@psf.upfronthosting.co.za>
In-reply-to
Content
By the way, Java behaves as Python: with LANG=C, Java uses ASCII:

http://stackoverflow.com/questions/13415975/cant-read-utf-8-filenames-when-launched-as-an-upstart-service

> udev and Upstart are not setting LANG

So it's an issue in udev and Upstart. See for example:
https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1235483
https://bugs.launchpad.net/ubuntu-translations/+bug/1208272

I found examples using "LANG=$LANG ..." when running a command in Upstart for example. I found another example using:


    if [ -r /etc/default/locale ]; then
	. /etc/default/locale
	export LANG LANGUAGE
    elif [ -r /etc/environment ]; then
	. /etc/environment
	export LANG LANGUAGE
    fi
History
Date User Action Args
2013-12-13 15:57:03vstinnersetrecipients: + vstinner, lemburg, loewis, terry.reedy, ncoghlan, pitrou, larry, a.badger, r.david.murray, Sworddragon, serhiy.storchaka, bkabrda
2013-12-13 15:57:02vstinnersetmessageid: <1386950222.98.0.826895030956.issue19846@psf.upfronthosting.co.za>
2013-12-13 15:57:02vstinnerlinkissue19846 messages
2013-12-13 15:57:02vstinnercreate