[Scons-users] scons 3.0.1: 'ascii' codec can't decode

Bill Deegan bill at baddogconsulting.com
Wed Nov 29 21:39:11 EST 2017


I'm not seeing the failure when I run on my mac:

$ venv/bin/scons -f SConstruct_Broken run
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o main.o -c main.cpp
g++ -o main.exe main.o
/Users/bdbaddog/devel/scons/bugs/ascii_codec_cant/main.exe
Hello, world!
scons: done building targets.

$ cat SConstruct_Broken
import os
env = Environment(tools = ["mingw"], ENV=os.environ)
prog = env.Program("main", ["main.cpp"])
run = env.Alias("run", prog, prog[0].abspath)
AlwaysBuild(run)


$ venv/bin/scons --version
SCons by Steven Knight et al.:
    script: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14
13:16:53, by bdbaddog on hpmicrodog
    engine: v3.0.1.74b2c53bc42290e911b334a6b44f187da698a668, 2017/11/14
13:16:53, by bdbaddog on hpmicrodog
    engine path:
['/Users/bdbaddog/devel/scons/bugs/ascii_codec_cant/venv/lib/python2.7/site-packages/scons-3.0.1/SCons']
Copyright (c) 2001 - 2017 The SCons Foundation



On Wed, Nov 29, 2017 at 1:10 PM, Fred Wright <fw at fwright.net> wrote:

>
> On Wed, 29 Nov 2017, Bill Deegan wrote:
>
> > Yes.
> > That's some logic from the py2/3 port that's not quite right it seems.
> >
> > Very surprised our test suite didn't catch something this simple.
> > I'll take a look at the logic.
> > I have a fix for similar in one of my sandboxes, but it's breaking a lot
> of
> > the tests (which themselves could be wrong), thought that fix is for
> py3.5+
> > issue.
> >
> > In essence, all info used to create a signature from files/values/etc
> > should be bytes and not unicode and not treated as a string.
> > Looks like the code is not doing that in at least 2 places.
>
> Have you looked at?:
>
> Practical Python porting for systems programmers
> http://www.catb.org/esr/faqs/practical-python-porting/
>
> In particular, the section titled "Fix up string/unicode mixing"?
>
> Fred Wright
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171129/3075559b/attachment.html>


More information about the Scons-users mailing list