From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason at zx2c4.com (Jason A. Donenfeld) Date: Thu, 10 Aug 2017 16:04:52 +0200 Subject: [PATCH] filter: set environment variable PYTHONIOENCODING to utf-8 In-Reply-To: References: <20170223154823.18206-1-roy@marples.name> <20170304123521.GC2102@john.keeping.me.uk> <20170309001002.GF2102@john.keeping.me.uk> <20170312175153.GM2102@john.keeping.me.uk> <20170317200455.GO2102@john.keeping.me.uk> Message-ID: For the time being I'm going to NACK the PYTHONIOENCODING patch until we have a good solution for modifying LANG. I don't think it's proper to make a laundry list of interpreter-specific variables; it could get out of control eventually. What are our options? Wait for C.UTF-8 to be available everywhere? Parse LANG to determine the actual language, and then remove the end and add on ".utf-8", as in John's example? https://github.com/commercialhaskell/stack/commit/478ca7118372fe9a500430cae36924ae64e147c6 This is pretty extensive here, but it's a bit complicated... Jason