[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: |
Fri, 1 Apr 2016 16:13:35 -0700 (PDT) |
On Thu, 31 Mar 2016, Fred Wright wrote:
> The two remaining pieces are the str vs. bytes stuff, and a "target
One complication on str vs. bytes is that the "latin-1 hack" doesn't
always work as well as it first appears. In some contexts, a string is
assumed to have the default encoding, which is derived from the
environment. Aside from being non-hermetic, this also means that if LANG
is unset (and I had to unset it in regress-driver to keep sed from choking
on some binary data), the encoding is assumed to be 'ascii', which chokes
on anything with the high-order bit set.
Fred Wright
- Re: [gpsd-dev] Update on Python Version Compatibility,
Fred Wright <=