Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Buffers in toPortablePath #4914

Closed
wants to merge 3 commits into from
Closed

Support Buffers in toPortablePath #4914

wants to merge 3 commits into from

Conversation

quisido
Copy link

@quisido quisido commented Sep 27, 2022

What's the problem this PR addresses?

resolves #1818

In some instances, toPortablePath is provided a Buffer on Windows. This results in a crash, since toPortablePath only expects to receive strings.

How did you fix it?

When toPortablePath is provided a Buffer, I first convert it to a string before continuing.

Checklist

  • I have read the Contributing Guide.
  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

I left all other packages as undecided for release. I suppose let me know if they need patch bumps too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] fs functions that use buffer encoding fail
1 participant