gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gpsd-dev] Update on Python Version Compatibility


From: Fred Wright
Subject: Re: [gpsd-dev] Update on Python Version Compatibility
Date: Sun, 3 Apr 2016 13:39:32 -0700 (PDT)

On Sun, 3 Apr 2016, Fred Wright wrote:

> I did some poking around at Python in general, and identified the problem.
> It's not the overall default encoding that's the issue.  That remains
> utf-8 regardless of the environment (and would choke on *some* arbitrary
> binary data, anyway).  It's sys.stdout.encoding, which is derived from
> LANG, and defaults to US-ASCII when LANG is unset (or empty).  This

It looks like I missed the "wrapper" stuff when I was doing it the first
time, but it's probably just as well, since using the preexisting binary
stdout seems cleaner than the wrapper approach, anyway.

Fred Wright



reply via email to

[Prev in Thread] Current Thread [Next in Thread]