Git Product home page Git Product logo

Comments (10)

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @valentjn on Mar 28, 2017, 13:03

Most likely he's having some umlauts in his environment variables. (Congrats on being the first user with this :first_place:) He can check with export | grep -P "[\x80-\xFF]", which displays all variables with non-ASCII characters in it.

I can reproduce this if I do export BLA="täst" before the scons.

In the original snippet, the SCons people seem to convert unicode strings to standard str strings. I seem to have replaced that with that ASCII re-encoding, probably because it didn't work on my system. (See, that's how I work: Just do random stuff until it's fixed.) I just checked and all the variables of spawnEnv are already strs before doing anything, at least for my Ubuntu.

Maybe someone can confirm that (print type(spawnEnv[var]) before converting)? We might not need the conversion for loop at all in this case. It seems to work just fine on my system without it.

Florian might try removing that for loop; if it works, I'll check on Windows and if that works, I'll push a fix, probably to codingdays.

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @krsgpp on Mar 31, 2017, 12:37

Florian told me, that he is able to compile when there are no env-vars with umlauts.

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @valentjn on Mar 31, 2017, 14:06

Excellent! But since we want that SG++ runs even on platforms with umlauts in their environment (and we want to solve bugs here and not just post workarounds), it'd be nice if someone can check if we need that conversion for loop at all.

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @valentjn on Aug 29, 2017, 15:16

This bug seems to be current in master. @krsgpp had problems pushing a MR since Jenkins's GitLab plugin injected his name in the environment.

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @valentjn on Aug 31, 2017, 07:49

mentioned in merge request !25

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @krsgpp on Sep 6, 2017, 12:12

Ok, I tried around and your proposed solution (removing the for loop that does the conversion) works at my system.
I suggest that I create a separate MR for this one and push it, so that the ENV is again "bad" and we can see how jenkins handles this. Ok?

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @krsgpp on Sep 6, 2017, 12:18

mentioned in merge request !26

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @krsgpp on Sep 6, 2017, 12:22

closed via commit 45b122e

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @krsgpp on Sep 6, 2017, 12:22

closed via merge request !26

from sgpp.

valentjn avatar valentjn commented on May 31, 2024

In GitLab by @krsgpp on Sep 15, 2017, 15:57

mentioned in commit 45b122e

from sgpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.