Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #95681

Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run

Path csiph.com!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'cc:addr:python-list': 0.09; 'subject:characters': 0.09; 'subject:script': 0.09; 'python': 0.10; '2.7': 0.13; 'apache': 0.14; 'subject: \n ': 0.15; 'thu,': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'investigate': 0.16; 'mode)': 0.16; 'nevertheless': 0.16; 'perfect.': 0.16; 'picks': 0.16; 'subject:non': 0.16; 'subject:run': 0.16; 'wrote:': 0.16; 'obviously': 0.16; 'shell': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'am,': 0.23; 'installation': 0.23; 'header:In-Reply-To:1': 0.24; 'figure': 0.27; 'message-id:@mail.gmail.com': 0.27; "skip:' 10": 0.28; 'mode.': 0.29; 'guess': 0.31; "can't": 0.32; 'maybe': 0.33; "i'll": 0.33; 'running': 0.34; 'gets': 0.35; 'received:google.com': 0.35; 'next': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'itself': 0.38; 'version': 0.38; 'files': 0.38; 'why': 0.39; 'subject:-': 0.39; 'some': 0.40; 'provide': 0.61; 'different': 0.63; '3.4': 0.84; 'chrisa': 0.84; 'to:none': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=Z5OAdAv9mDeem0cICar7JsLmd+59R9M4gmJqix1MXG4=; b=HFXmRKGqXVCKRZnrX1QPDzeahabfVaNwWyL3O8XiLD0yU0xi69Tsi/kpqHXsiARRAf Er0w0aRzRBtZKFHR6kggyMV2BdkAR/1stO323IYq2dFBL+nZxwoM3JWphbjaq+8km1L4 RKga7SQJ/y7/DYXaH1He/l+Pk/sh/zqh5xGNFW5JlLn6CRLEMa7BsZJ+XP3jG2e8N4Mq Lw1JWbRc3DEVDAqUq+I8pvmVVCwxGi3oTqAWBzQOKLIQ+d68HhYnej7Or81HVJ6CPuj7 Xf8zi4K4mSYd4ycOtjE9A6PLiQWtcBhPFS/06A8ZnuZ/5czgXZ9WOQjhUeaCKgRcRhWY BrFQ==
MIME-Version 1.0
X-Received by 10.50.118.104 with SMTP id kl8mr14845243igb.92.1440630917880; Wed, 26 Aug 2015 16:15:17 -0700 (PDT)
In-Reply-To <9f5d0558-cfc4-4764-b0a2-2516c1cddc8e@googlegroups.com>
References <c085c6af-31f6-480c-a9b4-90f46441fdd1@googlegroups.com> <4fec8570-dfdf-4097-b6e6-c79fbd6e3022@googlegroups.com> <mailman.53.1440604680.11709.python-list@python.org> <9f5d0558-cfc4-4764-b0a2-2516c1cddc8e@googlegroups.com>
Date Thu, 27 Aug 2015 09:15:17 +1000
Subject Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.69.1440630926.11709.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1440630926 news.xs4all.nl 23846 [2001:888:2000:d::a6]:52899
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:95681

Show key headers only | View raw


On Thu, Aug 27, 2015 at 5:23 AM, RAH <rene.heymans@gmail.com> wrote:
> Nevertheless I can't figure out why calling Python in the shell (interactive mode) or letting mod_wsgi start the same Python provide two different environments. I guess I must investigate that part because mod_wsgi gets to Python in what I would call 'auto-discovery' mode. Obviously it gets the same version 3.4.0 but maybe it picks up some 2.7 configuration files because the installation of 3.4 next to 2.7 might not be perfect. I'll look at it.
>

Apache itself most likely is running with LANG=C and other
environmental changes. It's not a Python-specific thing.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-25 14:19 -0700
  Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Kaynor <ckaynor@zindagigames.com> - 2015-08-25 14:28 -0700
    Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 02:12 -0700
      Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-26 19:24 +1000
        Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:24 -0700
  Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-26 09:16 +1000
    Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:18 -0700
  Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run dieter <dieter@handshake.de> - 2015-08-26 07:51 +0200
    Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:20 -0700
  Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Pete Dowdell <contact@stridebird.com> - 2015-08-26 14:09 +0700
    Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 07:22 -0700
  Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 08:02 -0700
    Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-27 01:57 +1000
      Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-26 12:23 -0700
        Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Chris Angelico <rosuav@gmail.com> - 2015-08-27 09:15 +1000
          Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run Marko Rauhamaa <marko@pacujo.net> - 2015-08-27 08:59 +0300
  Re: file.write() of non-ASCII characters differs in Interpreted Python than in script run RAH <rene.heymans@gmail.com> - 2015-08-27 07:01 -0700

csiph-web