Git Product home page Git Product logo

Comments (4)

saghul avatar saghul commented on May 21, 2024

FWIW, I went back and forth regarding the terminating NULL, we should check the git history to make sure we don't break anything. Also, we should be consistent with uv_exepath and other functions that behave similarly.

As a side note, wouldn't changing this be a backwards incompatible change?

from libuv.

piscisaureus avatar piscisaureus commented on May 21, 2024

As a side note, wouldn't changing this be a backwards incompatible change?

Yes, so we can only change this as part of a major release.
I'll fix the test on v1.x.

from libuv.

bnoordhuis avatar bnoordhuis commented on May 21, 2024

So I would expect this test to fail on linux too. @bnoordhuis can you maybe shed some light on this, because I have no idea.

Because size is 26 after the first call to uv_cwd() and 20 after the second call (/home/bnoordhuis/src/libuv vs. /home/bnoordhuis/src). In other words, it worked by accident. :-)

from libuv.

piscisaureus avatar piscisaureus commented on May 21, 2024

The test was fixed and unix/windows behavior was made the same. That's all we can do on an API-stable branch.

For posterity: the meaning of the size argument is still weird. It's something that we should address in libuv 2.x.

from libuv.

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.