Giter Site home page Giter Site logo

Randomize LC_ALL in CI? about wabt HOT 7 CLOSED

SoniEx2 avatar SoniEx2 commented on June 23, 2024
Randomize LC_ALL in CI?

from wabt.

Comments (7)

sbc100 avatar sbc100 commented on June 23, 2024

What kind of failures are you hoping to catch?

from wabt.

SoniEx2 avatar SoniEx2 commented on June 23, 2024

the kind of failures that happen when someone tries to parse localizable strings ^^

from wabt.

keithw avatar keithw commented on June 23, 2024

WABT itself never calls setlocale(), so afaik there's no way that the LC_ALL environment variable can affect the behavior of any of the executables or tests.

I also don't think libwabt ever calls a locale-sensitive function (so even if it's linked with an application that has called setlocale(), I don't think libwabt's behavior will be affected), but I'm not 100% sure about this. If we find a counterexample, my view would be that we should probably just remove it...

from wabt.

SoniEx2 avatar SoniEx2 commented on June 23, 2024

yeah, but you never know whether you're accidentally relying on localizable strings in e.g. shell scripts.

randomizing LC_ALL should make it obvious if you are.

it also prevents future code from doing this too.

from wabt.

sbc100 avatar sbc100 commented on June 23, 2024

Have we had reports of such issues in wabt?

from wabt.

SoniEx2 avatar SoniEx2 commented on June 23, 2024

Not that we know of, no. And it should stay that way.

from wabt.

keithw avatar keithw commented on June 23, 2024

Closing for now -- I don't think we have consensus that the benefit here would be worth it.

from wabt.

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.