GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

[Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING

"Martin v. Löwis" martin at v.loewis.de
Tue May 20 20:25:42 CEST 2008

  • Previous message: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING
  • Next message: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

>> You're forgetting about print; in Python 2.x, when stdout is connected to a
>> terminal, the locale settings (typically the LANG, LC_ALL and LC_CTYPE
>> environment variables) are taken into account when 'print' writes to
>> sys.stdout.
> 
> Isn't it then enough to make sure your locale setting are correct?
> (Never had any problems myself, if works great in Ubuntu).

It's much more difficult on OS X, for example, which doesn't really
support the concept of locales (at least prior to 10.5).

There are other odd cases, like the Eclipse one I mentioned. Setting
the locale doesn't help there.

Regards,
Martin

  • Previous message: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING
  • Next message: [Python-Dev] Proposal: new environment variable PYTHONSTDOUTENCODING
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

More information about the Python-Dev mailing list
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.