[Scons-users] SCons 3.0.0.alpha.20170614 available on testpypi

Bill Deegan bill at baddogconsulting.com
Mon Jul 31 20:17:14 EDT 2017


o.k.
I should be able to make a unit test for such and theoretically should only
need that character in question..

>>> u'\xdf'
'ß'
>>> u'\xdf'.encode('utf-8')
b'\xc3\x9f'
>>> u'\xdf'.encode('latin-1')
b'\xdf'

CP1252 has been a problem child for me in the past.. so not surprised it
shows up again..


On Mon, Jul 31, 2017 at 4:53 PM, Tim Jenness <tjenness at lsst.org> wrote:

>
> > On Jul 31, 2017, at 16:48 , Bill Deegan <bill at baddogconsulting.com>
> wrote:
> >
> > Maybe dump checking the BOM's and a series of try/excepts
> >
> > utf-8, utf-16, windows-1252, then errors=ignore?
> >
>
> The BOMs at least have the advantage of you knowing you are doing the
> right thing, so I think I’d retain that code. Adding a for loop of common
> decodings with a try in the loop, and then finally returning with
> errors=ignore doesn’t seem crazy.
>
>> Tim Jenness
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20170731/f91647f3/attachment.html>


More information about the Scons-users mailing list